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

Andrew Walker arwalker at sumusltd.com
Tue Mar 14 21:34:54 CET 2006


SVN commit 518660 by arwalker:

BUG:123579 Ensure the _activeHandler is set for newly created windows so that view objects can be created.

 M  +6 -0      kst.cpp  
 M  +2 -0      kst.h  
 M  +1 -1      ksttoplevelview.cpp  


--- trunk/extragear/graphics/kst/src/libkstapp/kst.cpp #518659:518660
@@ -1898,6 +1898,7 @@
   }
 
   _viewMode = mode;
+  _createType = createType;
 }
 
 
@@ -1906,6 +1907,11 @@
 }
 
 
+QString KstApp::currentCreateType() {
+  return _createType;
+}
+
+
 KstApp::KstGraphicType KstApp::getGraphicType() {
   return _graphicType;
 }
--- trunk/extragear/graphics/kst/src/libkstapp/kst.h #518659:518660
@@ -133,6 +133,7 @@
     KstGraphicType getGraphicType();
     
     KstTopLevelView::ViewMode currentViewMode();
+    QString currentCreateType();
     
     KstTopLevelViewPtr activeView();
     Kst2DPlotMap* plotHolderWhileOpeningDocument();
@@ -570,6 +571,7 @@
     KstGraphicType _graphicType;
     
     KstTopLevelView::ViewMode _viewMode;
+    QString _createType;
     QGuardedPtr<KstDebugNotifier> _debugNotifier;
     QGuardedPtr<KstDataNotifier> _dataNotifier;
 };
--- trunk/extragear/graphics/kst/src/libkstapp/ksttoplevelview.cpp #518659:518660
@@ -73,7 +73,7 @@
   _mouseGrabbed = false;
   _activeHandler = 0L;
   _mode = Unknown;
-  setViewMode(KstApp::inst()->currentViewMode());
+  setViewMode(KstApp::inst()->currentViewMode(), KstApp::inst()->currentCreateType());
 }
 
 


More information about the Kst mailing list