Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Actions/Action.cpp

    rb2d8d0 r952f38  
    1616#include "UIElements/Dialog.hpp"
    1717#include "Helpers/MemDebug.hpp"
     18#include "UIElements/UIFactory.hpp"
    1819
    19 #include "log.hpp"
    20 #include "verbose.hpp"
     20#include "Helpers/Log.hpp"
     21#include "Helpers/Verbose.hpp"
    2122
    2223using namespace std;
     
    4546}
    4647
     48Dialog * Action::createDialog(){
     49  Dialog *dialog = UIFactory::getInstance().makeDialog();
     50  return fillDialog(dialog);
     51}
     52
    4753void Action::call(enum QueryOptions flag){
    4854  if(!isActive()){
     
    5258  if (flag == Interactive) {
    5359    Dialog* dialog = createDialog();
    54     if (dialog != NULL) {
     60    if (dialog->hasQueries()) {
    5561      dialog->display();
    56       delete(dialog);
    5762    }
     63    delete(dialog);
    5864  }
    5965  state_ptr state = Action::failure;
Note: See TracChangeset for help on using the changeset viewer.