summaryrefslogtreecommitdiff
path: root/muse2/muse/app.cpp
diff options
context:
space:
mode:
authorFlorian Jung <flo@windfisch.org>2011-08-21 16:33:13 +0000
committerFlorian Jung <flo@windfisch.org>2011-08-21 16:33:13 +0000
commit74ef94afca796f9cdd2fe9b5eba0c60c3c9150d3 (patch)
treeb74ad11920a2d84e09bbb55bf5275aaeeb96e50d /muse2/muse/app.cpp
parent958f22a0b718d5a94cecd20073710c80e609cdac (diff)
fixed saving window state. again.
Diffstat (limited to 'muse2/muse/app.cpp')
-rw-r--r--muse2/muse/app.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/muse2/muse/app.cpp b/muse2/muse/app.cpp
index ba4d2487..16b91d17 100644
--- a/muse2/muse/app.cpp
+++ b/muse2/muse/app.cpp
@@ -968,8 +968,8 @@ MusE::MusE(int argc, char** argv) : QMainWindow()
changeConfig(false);
QSettings settings("MusE", "MusE-qt");
- //restoreGeometry(settings.value("MusE/geometry").toByteArray());
- restoreState(settings.value("MusE/windowState").toByteArray());
+ restoreGeometry(settings.value("MusE/geometry").toByteArray());
+ //restoreState(settings.value("MusE/windowState").toByteArray());
song->update();
@@ -1469,8 +1469,10 @@ void MusE::closeEvent(QCloseEvent* event)
}
QSettings settings("MusE", "MusE-qt");
- //settings.setValue("MusE/geometry", saveGeometry());
- settings.setValue("MusE/windowState", saveState());
+ settings.setValue("MusE/geometry", saveGeometry());
+ //settings.setValue("MusE/windowState", saveState());
+
+ writeGlobalConfiguration();
// save "Open Recent" list
QString prjPath(configPath);