Rev 1075 | Rev 1087 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1075 | Rev 1081 | ||
---|---|---|---|
Line 78... | Line 78... | ||
78 | return; |
78 | return; |
79 | }
|
79 | }
|
80 | try { |
80 | try { |
81 | 81 | ||
82 | ModelController iland_model;
|
82 | ModelController iland_model;
|
- | 83 | GlobalSettings::instance()->setModelController( &iland_model ); |
|
83 | QObject::connect(&iland_model, SIGNAL(year(int)),SLOT(runYear(int))); |
84 | QObject::connect(&iland_model, SIGNAL(year(int)),SLOT(runYear(int))); |
84 | iland_model.setFileName(xml_name); |
85 | iland_model.setFileName(xml_name); |
85 | if (iland_model.hasError()) { |
86 | if (iland_model.hasError()) { |
86 | qWarning() << "!!!! ERROR !!!!"; |
87 | qWarning() << "!!!! ERROR !!!!"; |
87 | qWarning() << iland_model.lastError(); |
88 | qWarning() << iland_model.lastError(); |