diff options
author | Ken Moore <moorekou@gmail.com> | 2015-09-02 16:03:47 -0400 |
---|---|---|
committer | Ken Moore <moorekou@gmail.com> | 2015-09-02 16:03:47 -0400 |
commit | b382008310a71f6134d1eecddcae9c68cc039ab0 (patch) | |
tree | 7219bd5fee69e41462f032e2c43c7dc916ecdbe8 /lumina-config | |
parent | Couple minor adjustments: (diff) | |
download | lumina-b382008310a71f6134d1eecddcae9c68cc039ab0.tar.gz lumina-b382008310a71f6134d1eecddcae9c68cc039ab0.tar.bz2 lumina-b382008310a71f6134d1eecddcae9c68cc039ab0.zip |
Add a quick check to ensure that a panel number is never less than zero.
Diffstat (limited to 'lumina-config')
-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 741e7fba..5f312f17 100644 --- a/lumina-config/mainUI.cpp +++ b/lumina-config/mainUI.cpp @@ -784,6 +784,8 @@ void MainUI::panelValChanged(){ } void MainUI::newPanel(){ + + if(panelnumber<0){ panelnumber=0; } //just in case panelnumber++; //Now create a new Panel widget with this number PanelWidget *tmp = new PanelWidget(ui->scroll_panels->widget(), this, PINFO); |