Mercurial > hg > svapp
comparison framework/MainWindowBase.cpp @ 759:5f8fc01e01c7
Never blunder ahead without a document at this point! (Could happen if first model was opened using OSC)
author | Chris Cannam |
---|---|
date | Wed, 29 Apr 2020 17:48:20 +0100 |
parents | 5b6655449ba6 |
children | 3a63f1f61bd6 |
comparison
equal
deleted
inserted
replaced
758:5b6655449ba6 | 759:5f8fc01e01c7 |
---|---|
1680 // We seem to have no current pane! Oh well | 1680 // We seem to have no current pane! Oh well |
1681 mode = CreateAdditionalModel; | 1681 mode = CreateAdditionalModel; |
1682 } | 1682 } |
1683 } | 1683 } |
1684 | 1684 |
1685 if (mode != ReplaceSession && !m_document) { | |
1686 SVDEBUG << "File open mode requested is something other than ReplaceSession, but we have no document at all yet, so we must use ReplaceSession mode" << endl; | |
1687 mode = ReplaceSession; | |
1688 } | |
1689 | |
1685 if (mode == CreateAdditionalModel && getMainModelId().isNone()) { | 1690 if (mode == CreateAdditionalModel && getMainModelId().isNone()) { |
1686 SVDEBUG << "Mode is CreateAdditionalModel but we have no main model, switching to ReplaceSession mode" << endl; | 1691 SVDEBUG << "File open mode requested is CreateAdditionalModel, but we have no main model, so switching to ReplaceSession mode" << endl; |
1687 mode = ReplaceSession; | 1692 mode = ReplaceSession; |
1688 } | 1693 } |
1689 | 1694 |
1690 bool loadedTemplate = false; | 1695 bool loadedTemplate = false; |
1691 | 1696 |