Rev 163 | Rev 165 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 163 | Rev 164 | ||
---|---|---|---|
Line 68... | Line 68... | ||
68 | mModel = new Model(); |
68 | mModel = new Model(); |
69 | mModel->loadProject(); |
69 | mModel->loadProject(); |
70 | 70 | ||
71 | if (mModel->isSetup()) |
71 | if (mModel->isSetup()) |
72 | mModel->beforeRun(); |
72 | mModel->beforeRun(); |
73 | - | ||
- | 73 | GlobalSettings::instance()->clearDebugLists(); |
|
74 | } catch(const IException &e) { |
74 | } catch(const IException &e) { |
75 | QString error_msg = e.toString(); |
75 | QString error_msg = e.toString(); |
76 | Helper::msg(error_msg); |
76 | Helper::msg(error_msg); |
77 | qDebug() << error_msg; |
77 | qDebug() << error_msg; |
78 | }
|
78 | }
|
Line 100... | Line 100... | ||
100 | }
|
100 | }
|
101 | 101 | ||
102 | void ModelController::runYear() |
102 | void ModelController::runYear() |
103 | {
|
103 | {
|
104 | if (!canRun()) return; |
104 | if (!canRun()) return; |
105 | GlobalSettings::instance()->clearDebugLists(); // clear debug data |
- | |
- | 105 | if (GlobalSettings::instance()->settings().paramValue("debug_clear",0.)==1.) |
|
- | 106 | GlobalSettings::instance()->clearDebugLists(); // clear debug data |
|
106 | 107 | ||
107 | try { |
108 | try { |
108 | mModel->runYear(); |
109 | mModel->runYear(); |
109 | fetchDynamicOutput(); |
110 | fetchDynamicOutput(); |
110 | } catch(const IException &e) { |
111 | } catch(const IException &e) { |