Skip to content

Commit

Permalink
fix #251461: refuse to exit if some text frame is open
Browse files Browse the repository at this point in the history
  • Loading branch information
wschweer committed Sep 14, 2017
1 parent 2cd0116 commit 05839cc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion libmscore/layout.cpp
Expand Up @@ -3475,8 +3475,14 @@ void Score::doLayout()

void Score::doLayoutRange(int stick, int etick)
{
if (!last()) {
qDeleteAll(_systems);
_systems.clear();
qDeleteAll(pages());
pages().clear();
return;
}
qDebug("%p %d-%d %s systems %d", this, stick, etick, isMaster() ? "Master" : "Part", int(_systems.size()));

bool layoutAll = stick <= 0 && (etick < 0 || etick >= last()->endTick());
if (stick < 0)
stick = 0;
Expand Down
2 changes: 1 addition & 1 deletion mscore/shortcut.cpp
Expand Up @@ -1886,7 +1886,7 @@ Shortcut Shortcut::_sc[] = {
},
{
MsWidget::MAIN_WINDOW,
STATE_DISABLED | STATE_NORMAL | STATE_NOTE_ENTRY | STATE_EDIT | STATE_PLAY | STATE_FOTO,
STATE_DISABLED | STATE_NORMAL | STATE_NOTE_ENTRY | STATE_EDIT | STATE_TEXT_EDIT | STATE_PLAY | STATE_FOTO,
"quit",
QT_TRANSLATE_NOOP("action","Quit")
},
Expand Down

0 comments on commit 05839cc

Please sign in to comment.