aboutsummaryrefslogtreecommitdiff
path: root/qmpsettingswindow.cpp
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2016-01-30 23:54:52 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2016-01-30 23:54:52 +0800
commit24481b4334db3c45041db53503a7b6832deb704f (patch)
tree8b8e6b43e76628760de208127ff074eb147cb8c4 /qmpsettingswindow.cpp
parent1785e14480ab00afc4309bfcfbd5b00caea8ddde (diff)
downloadQMidiPlayer-24481b4334db3c45041db53503a7b6832deb704f.tar.xz
Necro-Fantasy. (WTF)
Diffstat (limited to 'qmpsettingswindow.cpp')
-rw-r--r--qmpsettingswindow.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/qmpsettingswindow.cpp b/qmpsettingswindow.cpp
index 465bbc8..622093e 100644
--- a/qmpsettingswindow.cpp
+++ b/qmpsettingswindow.cpp
@@ -148,6 +148,9 @@ void qmpSettingsWindow::settingsInit()
settings->setValue("Behavior/SaveEfxParam",settings->value("Behavior/SaveEfxParam",1));
ui->cbSaveEfxParam->setChecked(settings->value("Behavior/SaveEfxParam",1).toInt());
+ settings->setValue("Behavior/SingleInstance",settings->value("Behavior/SingleInstance",0));
+ ui->cbPersistentfs->setChecked(settings->value("Behavior/SingleInstance",0).toInt());
+
settings->sync();
delete_fluid_settings(fsettings);
}
@@ -219,6 +222,7 @@ void qmpSettingsWindow::settingsUpdate()
settings->remove("Effects/ChorusType");
}
+ settings->setValue("Behavior/SingleInstance",ui->cbPersistentfs->isChecked()?1:0);
settings->sync();
}