]> Shamusworld >> Repos - architektonas/blobdiff - src/widgets/qg_actionhandler.cpp
Start of bringing back missing forms/dialogs
[architektonas] / src / widgets / qg_actionhandler.cpp
index 11d4b3f3440cc8799327ce12f631c406483a033e..5e8627942363e2ff1b1bd4eab3e977331d3265a0 100644 (file)
@@ -185,10 +185,10 @@ RS_ActionInterface * QG_ActionHandler::getCurrentAction()
 {
        RS_GraphicView * gv = mainWindow->getGraphicView();
 
-       if (gv != NULL)
+       if (gv)
                return gv->getCurrentAction();
-       else
-               return NULL;
+
+       return NULL;
 }
 
 #if 0
@@ -214,6 +214,12 @@ Then you'd call it with:
 
 Hmmm.... We need gv & doc *before* we call this...
 
+What you'd do then is have the form of the thing worked ahead of time and the function
+itself would create the gv & doc. So for the EditUndo, we'd have:
+       FunctionCreateAction(bool);
+       FunctionCreateAction(void);
+
+Well... The problem is the action, they're all different...
 #endif
 
 /**