@@ -975,14 +975,19 @@ MuseScore::MuseScore()
975975#if defined(Q_WS_MAC) || defined(Q_WS_WIN)
976976 menuHelp->addAction (tr (" Check for &Update" ), this , SLOT (checkForUpdate ()));
977977#endif
978- menuHelp-> addSeparator ();
979-
978+
979+
980980 a = getAction (" script-debug" );
981981 a->setCheckable (true );
982982 a->setChecked (scriptDebug);
983983 menuHelp->addAction (a);
984984 a->setEnabled (false );
985985
986+ #ifdef MSCORE_UNSTABLE
987+ menuHelp->addSeparator ();
988+ menuHelp->addAction (tr (" Report a bug" ), this , SLOT (reportBug ()));
989+ #endif
990+
986991 setCentralWidget (mainWindow);
987992
988993 loadInstrumentTemplates (preferences.instrumentList );
@@ -2110,7 +2115,7 @@ int main(int argc, char* av[])
21102115
21112116 QFile f (" :/revision.h" );
21122117 f.open (QIODevice::ReadOnly);
2113- revision = QString (f.readAll ());
2118+ revision = QString (f.readAll ()). trimmed () ;
21142119 f.close ();
21152120
21162121#ifdef Q_WS_MAC
@@ -2836,6 +2841,16 @@ void MuseScore::play(Element* e, int pitch) const
28362841 }
28372842 }
28382843
2844+ // ---------------------------------------------------------
2845+ // reportBug
2846+ // ---------------------------------------------------------
2847+ void MuseScore::reportBug ()
2848+ {
2849+ QString url (" http://musescore.org/en/node/add/project-issue/musescore?sha=" );
2850+ url += revision ();
2851+ QDesktopServices::openUrl (QUrl (url.trimmed ());
2852+ }
2853+
28392854// ---------------------------------------------------------
28402855// about
28412856// ---------------------------------------------------------
0 commit comments