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

Eli Fidler eli at staikos.net
Mon Nov 5 21:44:31 CET 2007


SVN commit 733199 by fidler:

initialize the _store pointer in MatrixTab


 M  +4 -3      matrixdialog.cpp  
 M  +1 -1      matrixdialog.h  


--- branches/work/kst/portto4/kst/src/libkstapp/matrixdialog.cpp #733198:733199
@@ -29,8 +29,8 @@
 
 namespace Kst {
 
-MatrixTab::MatrixTab(QWidget *parent)
-  : DataTab(parent), _mode(DataMatrix) {
+MatrixTab::MatrixTab(ObjectStore *store, QWidget *parent)
+  : DataTab(parent), _mode(DataMatrix), _store(store) {
 
   setupUi(this);
   setTabTitle(tr("Matrix"));
@@ -403,7 +403,8 @@
   else
     setWindowTitle(tr("New Matrix"));
 
-  _matrixTab = new MatrixTab(this);
+  Q_ASSERT(_document && _document->objectStore());
+  _matrixTab = new MatrixTab(_document->objectStore(), this);
   addDataTab(_matrixTab);
 
   //FIXME need to do validation to enable/disable ok button...
--- branches/work/kst/portto4/kst/src/libkstapp/matrixdialog.h #733198:733199
@@ -32,7 +32,7 @@
   public:
     enum MatrixMode { DataMatrix, GeneratedMatrix };
 
-    MatrixTab(QWidget *parent = 0);
+    MatrixTab(ObjectStore *store, QWidget *parent = 0);
     virtual ~MatrixTab();
 
     MatrixMode matrixMode() const { return _mode; }


More information about the Kst mailing list