Skip to content

Commit

Permalink
fix #42011: View menu is disabled if no score is open
Browse files Browse the repository at this point in the history
  • Loading branch information
lasconic committed Mar 18, 2015
1 parent 1a66cfb commit 9ec1056
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mscore/musescore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2506,7 +2506,7 @@ void MuseScore::changeState(ScoreState val)
if (!menu)
continue;
QString s(menu->objectName());
if (s == "File" || s == "Help" || s == "Edit" || s == "Plugins")
if (s == "File" || s == "Help" || s == "Edit" || s == "Plugins" || s == "View")
continue;
menu->setEnabled(enable);
}
Expand Down
2 changes: 1 addition & 1 deletion mscore/shortcut.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3266,7 +3266,7 @@ Shortcut Shortcut::_sc[] = {
},
{
MsWidget::MAIN_WINDOW,
STATE_DISABLED | STATE_NORMAL,
STATE_DISABLED | STATE_NORMAL | STATE_NOTE_ENTRY | STATE_EDIT | STATE_LYRICS_EDIT | STATE_PLAY,
"startcenter",
QT_TRANSLATE_NOOP("action","Start Center"),
QT_TRANSLATE_NOOP("action","Start center"),
Expand Down

0 comments on commit 9ec1056

Please sign in to comment.