[Kst] branches/work/kst/portto4/kst

Barth Netterfield netterfield at astro.utoronto.ca
Sat May 22 18:06:33 CEST 2010


SVN commit 1129496 by netterfield:

Reload files with multiple tabs.



 M  +15 -0     devel-docs/Kst2Specs/Bugs  
 M  +5 -0      src/libkstapp/document.cpp  


--- branches/work/kst/portto4/kst/devel-docs/Kst2Specs/Bugs #1129495:1129496
@@ -16,4 +16,19 @@
 
 Windows MEMleak
 
+------------------
 
+Missing defaults for ascii files
+erase all kst config files to simulate running kst for the first time.
+Open an ascii file
+The following debug comments are spewed:
+Using unset value  Comment Delimiters 
+Using unset value  Filename Pattern 
+Using unset value  Column Delimiter 
+Using unset value  Column Width 
+Using unset value  Data Start 
+Using unset value  Read Fields 
+Using unset value  Use Dot 
+...etc
+
+Opening the dialog has no defaults set for these.  There should be.
--- branches/work/kst/portto4/kst/src/libkstapp/document.cpp #1129495:1129496
@@ -170,6 +170,7 @@
   // the current session
   
   View *loadedView = 0;
+  bool firstView = true;
   QRectF currentSceneRect;
 
   QXmlStreamReader xml;
@@ -225,7 +226,10 @@
             {
               if (n == "view") {
                 loadedView = new Kst::View(0);
+                if (firstView) {
                 _win->tabWidget()->clear();
+                  firstView = false;
+                }
                 _win->tabWidget()->addView(loadedView);
                 QXmlStreamAttributes attrs = xml.attributes();
                 loadedView->setObjectName(attrs.value("name").toString());
@@ -247,6 +251,7 @@
             break;
           case View:
             {
+
               ViewItem *i = GraphicsFactory::parse(xml, objectStore(), loadedView);
               if (i) {
                 loadedView->scene()->addItem(i);


More information about the Kst mailing list