MCPcopy Index your code
hub / github.com/DreamSourceLab/DSView / check_config_file_version

Method check_config_file_version

DSView/pv/mainwindow.cpp:1626–1645  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 6

ShowFunction · 0.85
get_deviceMethod · 0.80
is_new_deviceMethod · 0.80
get_work_modeMethod · 0.80
get_config_int16Method · 0.80
is_fileMethod · 0.45

Tested by

no test coverage detected