diff options
author | Weblate <noreply@weblate.org> | 2017-03-27 15:38:20 +0000 |
---|---|---|
committer | Weblate <noreply@weblate.org> | 2017-03-27 15:38:20 +0000 |
commit | ca8e32d59e2fe52e5cdf354a6592afcf33815b11 (patch) | |
tree | e9e176c82a840ff94c1be8e1621faeff8aa9b1c1 /src-qt5 | |
parent | Translated using Weblate (l_TE@es (generated)) (diff) | |
parent | Merge branch 'master' of github.com:trueos/lumina (diff) | |
download | lumina-ca8e32d59e2fe52e5cdf354a6592afcf33815b11.tar.gz lumina-ca8e32d59e2fe52e5cdf354a6592afcf33815b11.tar.bz2 lumina-ca8e32d59e2fe52e5cdf354a6592afcf33815b11.zip |
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'src-qt5')
-rw-r--r-- | src-qt5/core-utils/lumina-config/pages/page_interface_panels.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src-qt5/core-utils/lumina-config/pages/page_interface_panels.cpp b/src-qt5/core-utils/lumina-config/pages/page_interface_panels.cpp index 45fd8913..8ab9b093 100644 --- a/src-qt5/core-utils/lumina-config/pages/page_interface_panels.cpp +++ b/src-qt5/core-utils/lumina-config/pages/page_interface_panels.cpp @@ -59,7 +59,8 @@ void page_interface_panels::LoadSettings(int screennum){ QString screenID = QApplication::screens().at(cscreen)->name(); QString DPrefix = "desktop-"+screenID+"/"; int panelnumber = settings->value(DPrefix+"panels",-1).toInt(); - QBoxLayout *panels_layout = static_cast<QHBoxLayout*>(ui->scroll_panels->widget()->layout()); + if(panelnumber<0){ panelnumber = 0; } + QHBoxLayout *panels_layout = static_cast<QHBoxLayout*>(ui->scroll_panels->widget()->layout()); //Remove extra panels (if any) for(int i=panelnumber; i<PANELS.length(); i++){ |