aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Moore <ken@pcbsd.org>2015-05-15 09:59:06 -0400
committerKen Moore <ken@pcbsd.org>2015-05-15 09:59:06 -0400
commitaebedd507fd9f78560e15df3fbb895d86b991d43 (patch)
tree075cbafc4044e68f7d784725aef29bbdd24e3682
parentA couple adjustments to the session startup procedures: (diff)
downloadlumina-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.cpp2
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);
bgstack15