diff options
-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); |