| 1104 | } |
| 1105 | |
| 1106 | void MainWindow::determineIrsSelection() |
| 1107 | { |
| 1108 | ui->conv_fav->clearCurrentFile(); |
| 1109 | ui->conv_files->clearCurrentFile(); |
| 1110 | ui->convTabs->setCurrentIndex(0); |
| 1111 | |
| 1112 | // File was selected from favorites |
| 1113 | if (_currentImpulseResponse.contains(AppConfig::instance().getPath("irs_favorites"))) |
| 1114 | { |
| 1115 | ui->conv_files->setCurrentDirectory(AppConfig::instance().getIrsPath()); |
| 1116 | ui->conv_fav->setCurrentDirectory(AppConfig::instance().getPath("irs_favorites")); |
| 1117 | ui->conv_fav->setCurrentFile(_currentImpulseResponse); |
| 1118 | ui->convTabs->setCurrentIndex(1); |
| 1119 | } |
| 1120 | // File does not exist anymore |
| 1121 | else if (!QFile(_currentImpulseResponse).exists()) |
| 1122 | { |
| 1123 | ui->conv_files->setCurrentDirectory(AppConfig::instance().getIrsPath()); |
| 1124 | } |
| 1125 | // External file |
| 1126 | else |
| 1127 | { |
| 1128 | ui->conv_files->setCurrentFile(_currentImpulseResponse); |
| 1129 | } |
| 1130 | } |
| 1131 | |
| 1132 | void MainWindow::onConvolverWaveformEdit() |
| 1133 | { |
nothing calls this directly
no test coverage detected