Mercurial > hg > sonic-visualiser
diff main/main.cpp @ 237:99fa3387dfef
* Update remaining editable layers to support proper realignment on copy/paste
* Permit pasting when no suitable layer is current: create a new layer on paste
* Add preference for showing the splash screen or not
* Rename spectrogram smoothing prefs (partly following Craig's suggestions)
author | Chris Cannam |
---|---|
date | Wed, 06 Feb 2008 14:15:09 +0000 |
parents | e8a7a935128e |
children | a47d7116aedf |
line wrap: on
line diff
--- a/main/main.cpp Wed Feb 06 12:49:49 2008 +0000 +++ b/main/main.cpp Wed Feb 06 14:15:09 2008 +0000 @@ -234,12 +234,13 @@ QSplashScreen splash(pixmap); QSettings settings; - settings.beginGroup("MainWindow"); - - if (settings.value("showsplash", true).toBool()) { + + settings.beginGroup("Preferences"); + if (settings.value("show-splash", true).toBool()) { splash.show(); application.processEvents(); } + settings.endGroup(); QIcon icon; int sizes[] = { 16, 22, 24, 32, 48, 64, 128 }; @@ -289,6 +290,7 @@ if (height < 450) height = available.height() * 2 / 3; if (width > height * 2) width = height * 2; + settings.beginGroup("MainWindow"); QSize size = settings.value("size", QSize(width, height)).toSize(); gui->resize(size); if (settings.contains("position")) {