]> Shamusworld >> Repos - architektonas/blobdiff - src/mainapp/mdiwindow.cpp
Beginnings of new render path (Snapper)...
[architektonas] / src / mainapp / mdiwindow.cpp
index ee6cc3fe009cef478b21250225c836f19c9b97a8..d260c3cd6a023a77aca1e1afda96a99cc82e9e95 100644 (file)
@@ -42,6 +42,8 @@ MDIWindow::MDIWindow(RS_Document * doc, QWidget * parent, const char * name/*= N
        id = idCounter++;
        parentWindow = NULL;
 
+//not using this anymore
+#if 0
        if (document)
        {
                if (document->getLayerList())
@@ -52,6 +54,7 @@ MDIWindow::MDIWindow(RS_Document * doc, QWidget * parent, const char * name/*= N
                        // Link the graphic view to the block widget
                        document->getBlockList()->addListener(graphicView);
        }
+#endif
 
 //hm.
        setFocus(/*Qt::StrongFocus*/);
@@ -64,11 +67,13 @@ MDIWindow::MDIWindow(RS_Document * doc, QWidget * parent, const char * name/*= N
  */
 MDIWindow::~MDIWindow()
 {
+#if 0
        if (document->getLayerList())
                document->getLayerList()->removeListener(graphicView);
 
        if (document->getBlockList())
                document->getBlockList()->removeListener(graphicView);
+#endif
 
        if (owner && document)
                delete document;