Changes in src/Actions/Action.cpp [952f38:b2d8d0]
- File:
-
- 1 edited
-
src/Actions/Action.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Actions/Action.cpp
r952f38 rb2d8d0 16 16 #include "UIElements/Dialog.hpp" 17 17 #include "Helpers/MemDebug.hpp" 18 #include "UIElements/UIFactory.hpp"19 18 20 #include " Helpers/Log.hpp"21 #include " Helpers/Verbose.hpp"19 #include "log.hpp" 20 #include "verbose.hpp" 22 21 23 22 using namespace std; … … 46 45 } 47 46 48 Dialog * Action::createDialog(){49 Dialog *dialog = UIFactory::getInstance().makeDialog();50 return fillDialog(dialog);51 }52 53 47 void Action::call(enum QueryOptions flag){ 54 48 if(!isActive()){ … … 58 52 if (flag == Interactive) { 59 53 Dialog* dialog = createDialog(); 60 if (dialog ->hasQueries()) {54 if (dialog != NULL) { 61 55 dialog->display(); 56 delete(dialog); 62 57 } 63 delete(dialog);64 58 } 65 59 state_ptr state = Action::failure;
Note:
See TracChangeset
for help on using the changeset viewer.
