MCPcopy Index your code
hub / github.com/Audio4Linux/JDSP4Linux / determineIrsSelection

Method determineIrsSelection

src/MainWindow.cpp:1106–1130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1104}
1105
1106void 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
1132void MainWindow::onConvolverWaveformEdit()
1133{

Callers

nothing calls this directly

Calls 6

clearCurrentFileMethod · 0.80
setCurrentDirectoryMethod · 0.80
setCurrentFileMethod · 0.80
containsMethod · 0.45
getPathMethod · 0.45
existsMethod · 0.45

Tested by

no test coverage detected