]> Shamusworld >> Repos - architektonas/blobdiff - src/mainapp/mdiwindow.cpp
Sanity check step 1: Renaming files...
[architektonas] / src / mainapp / mdiwindow.cpp
index ee6cc3fe009cef478b21250225c836f19c9b97a8..02b1d43997d3630d585a5614e5b1abed797f9b4f 100644 (file)
@@ -3,7 +3,9 @@
 // Part of the Architektonas Project
 // Originally part of QCad Community Edition by Andrew Mustun
 // Extensively rewritten and refactored by James L. Hammons
-// (C) 2010 Underground Software
+// Portions copyright (C) 2001-2003 RibbonSoft
+// Copyright (C) 2010 Underground Software
+// See the README and GPLv2 files for licensing and warranty information
 //
 // JLH = James L. Hammons <jlhamm@acm.org>
 //
@@ -42,6 +44,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 +56,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 +69,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;