Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Actions/Action.cpp

    r952f38 rb2d8d0  
    1616#include "UIElements/Dialog.hpp"
    1717#include "Helpers/MemDebug.hpp"
    18 #include "UIElements/UIFactory.hpp"
    1918
    20 #include "Helpers/Log.hpp"
    21 #include "Helpers/Verbose.hpp"
     19#include "log.hpp"
     20#include "verbose.hpp"
    2221
    2322using namespace std;
     
    4645}
    4746
    48 Dialog * Action::createDialog(){
    49   Dialog *dialog = UIFactory::getInstance().makeDialog();
    50   return fillDialog(dialog);
    51 }
    52 
    5347void Action::call(enum QueryOptions flag){
    5448  if(!isActive()){
     
    5852  if (flag == Interactive) {
    5953    Dialog* dialog = createDialog();
    60     if (dialog->hasQueries()) {
     54    if (dialog != NULL) {
    6155      dialog->display();
     56      delete(dialog);
    6257    }
    63     delete(dialog);
    6458  }
    6559  state_ptr state = Action::failure;
Note: See TracChangeset for help on using the changeset viewer.