]> Shamusworld >> Repos - architektonas/blobdiff - src/actions/actionmodifydeletequick.cpp
Initial removal of unnecessary rs_ prefixes from files.
[architektonas] / src / actions / actionmodifydeletequick.cpp
index 6ec8ddd301ec5e96fa0848c17794c4f9c3dddc87..5aa67c3e7992e41fa9842119a8d0aa055e312708 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>
 //
@@ -14,7 +16,8 @@
 
 #include "actionmodifydeletequick.h"
 
-#include "rs_dialogfactory.h"
+#include "debug.h"
+#include "dialogfactory.h"
 #include "graphicview.h"
 
 ActionModifyDeleteQuick::ActionModifyDeleteQuick(
@@ -35,15 +38,18 @@ void ActionModifyDeleteQuick::trigger()
 {
        RS_DEBUG->print("ActionModifyDeleteQuick::trigger()");
 
-       if (en != NULL)
+       if (en)
        {
                RS_DEBUG->print("Entity found");
                RS_EntityContainer * parent = en->getParent();
 
-               if (parent != NULL)
+               if (parent)
                {
                        en->setSelected(false);
+#warning "!!! Old rendering path need upgrade !!!"
+#if 0
                        graphicView->deleteEntity(en);
+#endif
                        en->changeUndoState();
 
                        if (document)