aboutsummaryrefslogtreecommitdiff
path: root/lumina-config/mainUI.cpp
diff options
context:
space:
mode:
authorKen Moore <ken@pcbsd.org>2015-02-17 15:38:49 -0500
committerKen Moore <ken@pcbsd.org>2015-02-17 15:38:49 -0500
commit0e004e754ea86094993b124ed729c0e706ff4241 (patch)
tree36897c64882a207924a2f233f596026a34049273 /lumina-config/mainUI.cpp
parentHave the clock panel plugin try to use vertical space rather than horizontal ... (diff)
downloadlumina-0e004e754ea86094993b124ed729c0e706ff4241.tar.gz
lumina-0e004e754ea86094993b124ed729c0e706ff4241.tar.bz2
lumina-0e004e754ea86094993b124ed729c0e706ff4241.zip
Fix a couple bugs in the panel settings detection.
Diffstat (limited to 'lumina-config/mainUI.cpp')
-rw-r--r--lumina-config/mainUI.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/lumina-config/mainUI.cpp b/lumina-config/mainUI.cpp
index affa3921..c633e866 100644
--- a/lumina-config/mainUI.cpp
+++ b/lumina-config/mainUI.cpp
@@ -467,7 +467,7 @@ void MainUI::loadCurrentSettings(bool screenonly){
//Panels Page
int panels = settings->value(DPrefix+"panels",-1).toInt();
if(panels==-1 && primary){ panels=1; }
- panelnumber = 0;
+ panelnumber = panels;
if(panels >= 1){
//Load the panel 1 information
QString PPrefix = "panel"+QString::number(cdesk)+".0/";
@@ -495,7 +495,7 @@ void MainUI::loadCurrentSettings(bool screenonly){
QString color = settings->value(PPrefix+"color","rgba(255,255,255,160)").toString();
ui->label_panel1_sample->setWhatsThis(color);
ui->label_panel1_sample->setStyleSheet("background: "+color);
- panelnumber++;
+ //panelnumber++;
}else{
//Panel 1 defaults
ui->toolBox_panel1->setVisible(false); //not initially visible
@@ -533,7 +533,7 @@ void MainUI::loadCurrentSettings(bool screenonly){
QString color = settings->value(PPrefix+"color","rgba(255,255,255,160)").toString();
ui->label_panel2_sample->setWhatsThis(color);
ui->label_panel2_sample->setStyleSheet("background: "+color);
- panelnumber++;
+ //panelnumber++;
}else{
//Panel 2 defaults
ui->toolBox_panel2->setVisible(false); //not initially visible
@@ -883,7 +883,7 @@ void MainUI::adjustpanel1(){
changed = true;
ui->combo_panel1_loc->setCurrentIndex(newindex);
}
- if(!loading && changed){ ui->push_save->setEnabled(true); modpan = true; }
+ if(!loading){ ui->push_save->setEnabled(true); modpan = true; }
}
void MainUI::adjustpanel2(){
@@ -907,7 +907,7 @@ void MainUI::adjustpanel2(){
changed = true;
ui->combo_panel2_loc->setCurrentIndex(newindex);
}
- if(!loading && changed){ ui->push_save->setEnabled(true); modpan = true; }
+ if(!loading){ ui->push_save->setEnabled(true); modpan = true; }
}
bgstack15