[Kst] extragear/graphics/kst/src/libkstapp

Andrew Walker arwalker at sumusltd.com
Thu Mar 16 20:04:01 CET 2006


SVN commit 519282 by arwalker:

Set the tab appropriately if the plot name is not unique

 M  +6 -1      kstplotdialog_i.cpp  


--- trunk/extragear/graphics/kst/src/libkstapp/kstplotdialog_i.cpp #519281:519282
@@ -1396,8 +1396,13 @@
           if (viewObject) {
             QString message = i18n("%1: not a unique plot name.\n"
                 "Change it to a unique name.").arg(Name->text().stripWhiteSpace());
-
+            QWidget *page = TabWidget->page(0);
+                
             KMessageBox::sorry(this, message);
+            
+            if (page) {
+              TabWidget->showPage(page);
+            }
             Name->selectAll();
             Name->setFocus();
 


More information about the Kst mailing list