| 276 | } |
| 277 | |
| 278 | bool VersionPage::reloadPackProfile() |
| 279 | { |
| 280 | try |
| 281 | { |
| 282 | m_profile->reload(Net::Mode::Online); |
| 283 | return true; |
| 284 | } |
| 285 | catch (const Exception &e) |
| 286 | { |
| 287 | QMessageBox::critical(this, tr("Error"), e.cause()); |
| 288 | return false; |
| 289 | } |
| 290 | catch (...) |
| 291 | { |
| 292 | QMessageBox::critical( |
| 293 | this, tr("Error"), |
| 294 | tr("Couldn't load the instance profile.")); |
| 295 | return false; |
| 296 | } |
| 297 | } |
| 298 | |
| 299 | void VersionPage::on_actionReload_triggered() |
| 300 | { |