| 442 | } |
| 443 | |
| 444 | QString MainWindow::gen_config_file_path(bool isNewFormat) |
| 445 | { |
| 446 | AppConfig &app = AppConfig::Instance(); |
| 447 | |
| 448 | QString file = GetProfileDir(); |
| 449 | QDir dir(file); |
| 450 | if (dir.exists() == false){ |
| 451 | dir.mkpath(file); |
| 452 | } |
| 453 | |
| 454 | QString driver_name = _device_agent->driver_name(); |
| 455 | QString mode_name = QString::number(_device_agent->get_work_mode()); |
| 456 | QString lang_name; |
| 457 | QString base_path = dir.absolutePath() + "/" + driver_name + mode_name; |
| 458 | |
| 459 | if (!isNewFormat){ |
| 460 | lang_name = QString::number(app.frameOptions.language); |
| 461 | } |
| 462 | |
| 463 | return base_path + ".ses" + lang_name + ".dsc"; |
| 464 | } |
| 465 | |
| 466 | bool MainWindow::able_to_close() |
| 467 | { |
nothing calls this directly
no test coverage detected