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