diff options
author | Weblate <noreply@weblate.org> | 2017-03-27 15:38:18 +0000 |
---|---|---|
committer | Weblate <noreply@weblate.org> | 2017-03-27 15:38:18 +0000 |
commit | bc2d95845240341a8682042a8b411cc2ccf877ed (patch) | |
tree | b8cf0a5b94776e6739d34072247c794f066ce431 /src-qt5/core-utils | |
parent | Translated using Weblate (lumina_CONFIG@de (generated)) (diff) | |
parent | Merge branch 'master' of github.com:trueos/lumina (diff) | |
download | lumina-bc2d95845240341a8682042a8b411cc2ccf877ed.tar.gz lumina-bc2d95845240341a8682042a8b411cc2ccf877ed.tar.bz2 lumina-bc2d95845240341a8682042a8b411cc2ccf877ed.zip |
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'src-qt5/core-utils')
-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++){ |