diff options
author | Florian Jung <flo@windfisch.org> | 2011-04-11 14:46:12 +0000 |
---|---|---|
committer | Florian Jung <flo@windfisch.org> | 2011-04-11 14:46:12 +0000 |
commit | 384e0d2f6d77ab107268921511dd91464d4accb3 (patch) | |
tree | f361808b7af39d0d28188e5efb0140b3e01ab8a1 /muse2/muse/app.cpp | |
parent | 51eda45715625b6da768e670388510c91b01ff5c (diff) | |
parent | c8a651f88b5728e246cb46599521ce981f0f4cfb (diff) |
cosmetic stuff: made many functions static, improved pixmap loading
synced with current trunk
Diffstat (limited to 'muse2/muse/app.cpp')
-rw-r--r-- | muse2/muse/app.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/muse2/muse/app.cpp b/muse2/muse/app.cpp index 00af02e9..58de4584 100644 --- a/muse2/muse/app.cpp +++ b/muse2/muse/app.cpp @@ -1744,6 +1744,7 @@ void MusE::loadProjectFile1(const QString& name, bool songTemplate, bool loadAll if (!fi.isReadable()) { QMessageBox::critical(this, QString("MusE"), tr("Cannot read template")); + QApplication::restoreOverrideCursor(); return; } project.setFile("untitled"); @@ -2087,17 +2088,19 @@ void MusE::closeEvent(QCloseEvent* event) n = QMessageBox::warning(this, appName, tr("The current Project contains unsaved data\n" "Save Current Project?"), - tr("&Save"), tr("&Skip"), tr("&Abort"), 0, 2); + tr("&Save"), tr("&Skip"), tr("&Cancel"), 0, 2); if (n == 0) { if (!save()) // dont quit if save failed { event->ignore(); + QApplication::restoreOverrideCursor(); return; } } else if (n == 2) { event->ignore(); + QApplication::restoreOverrideCursor(); return; } } |