| 1080 | } |
| 1081 | |
| 1082 | int BaseApplication::run() |
| 1083 | { |
| 1084 | try |
| 1085 | { |
| 1086 | this->setUnixOptions(true); |
| 1087 | this->init(d->m_Argc, d->m_Argv); |
| 1088 | } |
| 1089 | catch (const Poco::Util::OptionException& e) |
| 1090 | { |
| 1091 | MITK_ERROR << e.name() << ": " << e.message(); |
| 1092 | return EXIT_FAILURE; |
| 1093 | } |
| 1094 | catch (const mitk::Exception& e) |
| 1095 | { |
| 1096 | MITK_ERROR << e.GetDescription(); |
| 1097 | return EXIT_FAILURE; |
| 1098 | } |
| 1099 | |
| 1100 | return Application::run(); |
| 1101 | } |
| 1102 | |
| 1103 | void BaseApplication::setProperty(const QString &property, const QVariant &value) |
| 1104 | { |