Reverted 4f76f8f558
(GUI: wrong multiselection behaviour)
This commit is contained in:
parent
51ad747317
commit
2b3e1a28d8
|
@ -416,15 +416,11 @@ QStringList MainWindow::SelectFilesToCheck(QFileDialog::FileMode mode)
|
|||
}
|
||||
FormatAndSetTitle();
|
||||
} else if (mode == QFileDialog::DirectoryOnly) {
|
||||
QFileDialog dialog;
|
||||
dialog.setFileMode(mode);
|
||||
dialog.setWindowTitle("Select directory");
|
||||
QStringList dirs;
|
||||
if (dialog.exec())
|
||||
dirs = dialog.selectedFiles();
|
||||
if (!dirs.isEmpty()) {
|
||||
QString dir = dirs[0];
|
||||
qDebug() << "Setting current directory to: " << dirs[0];
|
||||
QString dir = QFileDialog::getExistingDirectory(this,
|
||||
tr("Select directory to check"),
|
||||
GetPath(SETTINGS_LAST_CHECK_PATH));
|
||||
if (!dir.isEmpty()) {
|
||||
qDebug() << "Setting current directory to: " << dir;
|
||||
mCurrentDirectory = dir;
|
||||
selected.append(dir);
|
||||
dir = QDir::toNativeSeparators(dir);
|
||||
|
|
Loading…
Reference in New Issue