macOS fix

otherwise CreateNewDocument is called twice
This commit is contained in:
Stefan Csomor
2019-01-03 17:04:13 +01:00
parent 5581e5079f
commit 142234d009

View File

@@ -287,7 +287,10 @@ bool MyApp::OnInit()
if ( m_filesFromCmdLine.empty() )
{
// on macOS the dialog will be shown by MacNewFile
#ifndef __WXMAC__
docManager->CreateNewDocument();
#endif
}
else // we have files to open on command line
{