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

Mike Fenton mike at staikos.net
Wed Jun 17 15:40:24 CEST 2009


SVN commit 983000 by fenton:

Fix load of document triggering a dirty document.
Remove PlotRenderItem geometry changes from dirty document tracking.


 M  +2 -0      mainwindow.cpp  
 M  +2 -0      plotrenderitem.cpp  


--- branches/work/kst/portto4/kst/src/libkstapp/mainwindow.cpp #982999:983000
@@ -229,6 +229,8 @@
     QMessageBox::critical(this, tr("Kst"), tr("Error opening document '%1':\n%2").arg(file, _doc->lastError()));
     delete _doc;
     _doc = new Document(this);
+  } else {
+    _doc->setChanged(false);
   }
 }
 
--- branches/work/kst/portto4/kst/src/libkstapp/plotrenderitem.cpp #982999:983000
@@ -61,6 +61,8 @@
   _referenceModeDisabled->setShortcut(Qt::SHIFT + Qt::Key_C);
   registerShortcut(_referenceModeDisabled);
   connect(_referenceModeDisabled, SIGNAL(triggered()), this, SLOT(referenceModeDisabled()));
+
+  disconnect(this, SIGNAL(geometryChanged()), parentView(), SLOT(viewChanged()));
 }
 
 


More information about the Kst mailing list