Skip to content

Commit

Permalink
Merge pull request #4229 from dmitrio95/startcenter-close-f4
Browse files Browse the repository at this point in the history
Fix tours being not shown on closing start center via F4 shortcut
  • Loading branch information
anatoly-os committed Nov 28, 2018
2 parents 7226757 + df9d950 commit 94e01a8
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions mscore/startcenter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,22 @@ namespace Ms {
// showStartcenter
//---------------------------------------------------------

void MuseScore::showStartcenter(bool val)
void MuseScore::showStartcenter(bool show)
{
QAction* a = getAction("startcenter");
if (val && startcenter == nullptr) {
if (show && startcenter == nullptr) {
startcenter = new Startcenter;
startcenter->addAction(a);
startcenter->readSettings();
connect(startcenter, SIGNAL(closed(bool)), a, SLOT(setChecked(bool)));
connect(startcenter, SIGNAL(closed(bool)), tourHandler(), SLOT(showWelcomeTour()), Qt::QueuedConnection);
}
startcenter->setVisible(val);
if (!startcenter)
return;
if (show)
startcenter->setVisible(true);
else
startcenter->close();
}

//---------------------------------------------------------
Expand Down

0 comments on commit 94e01a8

Please sign in to comment.