diff options
author | Ken Moore <ken@pcbsd.org> | 2015-05-15 09:59:06 -0400 |
---|---|---|
committer | Ken Moore <ken@pcbsd.org> | 2015-05-15 09:59:06 -0400 |
commit | aebedd507fd9f78560e15df3fbb895d86b991d43 (patch) | |
tree | 075cbafc4044e68f7d784725aef29bbdd24e3682 | |
parent | A couple adjustments to the session startup procedures: (diff) | |
download | lumina-aebedd507fd9f78560e15df3fbb895d86b991d43.tar.gz lumina-aebedd507fd9f78560e15df3fbb895d86b991d43.tar.bz2 lumina-aebedd507fd9f78560e15df3fbb895d86b991d43.zip |
Fix a bug in lumina-config where saving settings during a screen change was saving the settings on the new screen instead of the old one.
-rw-r--r-- | lumina-config/mainUI.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lumina-config/mainUI.cpp b/lumina-config/mainUI.cpp index 6d43308e..8a7c1e76 100644 --- a/lumina-config/mainUI.cpp +++ b/lumina-config/mainUI.cpp @@ -470,7 +470,9 @@ void MainUI::slotChangeScreen(){ if(cscreen!=newscreen){ if(moddesk || modpan){ if(QMessageBox::Yes == QMessageBox::question(this, tr("Save Changes?"), tr("You currently have unsaved changes for this screen. Do you want to save them first?"), QMessageBox::Yes | QMessageBox::No, QMessageBox::Yes) ){ + ui->spin_screen->setValue(cscreen+1); //Make sure the old screen is selected for a moment saveCurrentSettings(true); //only save current screen settings + ui->spin_screen->setValue(newscreen+1); //Now reset back to the new screen } } loadCurrentSettings(true); |