| 1624 | } |
| 1625 | |
| 1626 | void MainWindow::check_config_file_version() |
| 1627 | { |
| 1628 | auto device_agent = _session->get_device(); |
| 1629 | if (device_agent->is_file() && device_agent->is_new_device()) |
| 1630 | { |
| 1631 | if (device_agent->get_work_mode() == LOGIC) |
| 1632 | { |
| 1633 | int version = -1; |
| 1634 | if (device_agent->get_config_int16(SR_CONF_FILE_VERSION, version)) |
| 1635 | { |
| 1636 | if (version == 1) |
| 1637 | { |
| 1638 | QString strMsg(L_S(STR_PAGE_DLG, S_ID(IDS_DLG_CHECK_SESSION_FILE_VERSION_ERROR), |
| 1639 | "Current loading file has an old format. \nThis will lead to a slow loading speed. \nPlease resave it after loaded.")); |
| 1640 | MsgBox::Show(strMsg); |
| 1641 | } |
| 1642 | } |
| 1643 | } |
| 1644 | } |
| 1645 | } |
| 1646 | |
| 1647 | void MainWindow::load_device_config() |
| 1648 | { |
nothing calls this directly
no test coverage detected