Skip to content

Commit

Permalink
issue 3443, suppress generation of new document when documents are lo…
Browse files Browse the repository at this point in the history
…aded via command line
  • Loading branch information
mwganson authored and wwmayer committed Oct 7, 2018
1 parent 84aa87c commit 876c651
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Gui/MainWindow.cpp
Expand Up @@ -1071,7 +1071,9 @@ void MainWindow::delayedStartup()
// Create new document?
ParameterGrp::handle hGrp = WindowParameter::getDefaultParameter()->GetGroup("Document");
if (hGrp->GetBool("CreateNewDoc", false)) {
App::GetApplication().newDocument();
if (App::GetApplication().getDocuments().size()==0){
App::GetApplication().newDocument();
}
}

if (hGrp->GetBool("RecoveryEnabled", true)) {
Expand Down

0 comments on commit 876c651

Please sign in to comment.