| 341 | } |
| 342 | |
| 343 | void MainWindow::on_load_file(QString file_name) |
| 344 | { |
| 345 | try |
| 346 | { |
| 347 | if (_device_agent->is_hardware()){ |
| 348 | save_config(); |
| 349 | } |
| 350 | |
| 351 | _session->set_file(file_name); |
| 352 | } |
| 353 | catch (QString e) |
| 354 | { |
| 355 | QString strMsg(L_S(STR_PAGE_MSG, S_ID(IDS_MSG_FAIL_TO_LOAD), "Failed to load ")); |
| 356 | strMsg += file_name; |
| 357 | MsgBox::Show(strMsg); |
| 358 | _session->set_default_device(); |
| 359 | } |
| 360 | } |
| 361 | |
| 362 | void MainWindow::session_error() |
| 363 | { |
nothing calls this directly
no test coverage detected