| 464 | } |
| 465 | |
| 466 | bool MainWindow::able_to_close() |
| 467 | { |
| 468 | if (_device_agent->is_hardware() && _session->have_hardware_data() == false){ |
| 469 | _sampling_bar->commit_settings(); |
| 470 | } |
| 471 | // not used, refer to closeEvent of mainFrame |
| 472 | save_config(); |
| 473 | |
| 474 | if (confirm_to_store_data()){ |
| 475 | on_save(); |
| 476 | return false; |
| 477 | } |
| 478 | return true; |
| 479 | } |
| 480 | |
| 481 | void MainWindow::on_protocol(bool visible) |
| 482 | { |
no test coverage detected