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

Method on_load_file

DSView/pv/mainwindow.cpp:343–360  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 4

ShowFunction · 0.85
is_hardwareMethod · 0.80
set_fileMethod · 0.80
set_default_deviceMethod · 0.80

Tested by

no test coverage detected