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();
|
FormatAndSetTitle();
|
||||||
} else if (mode == QFileDialog::DirectoryOnly) {
|
} else if (mode == QFileDialog::DirectoryOnly) {
|
||||||
QFileDialog dialog;
|
QString dir = QFileDialog::getExistingDirectory(this,
|
||||||
dialog.setFileMode(mode);
|
tr("Select directory to check"),
|
||||||
dialog.setWindowTitle("Select directory");
|
GetPath(SETTINGS_LAST_CHECK_PATH));
|
||||||
QStringList dirs;
|
if (!dir.isEmpty()) {
|
||||||
if (dialog.exec())
|
qDebug() << "Setting current directory to: " << dir;
|
||||||
dirs = dialog.selectedFiles();
|
|
||||||
if (!dirs.isEmpty()) {
|
|
||||||
QString dir = dirs[0];
|
|
||||||
qDebug() << "Setting current directory to: " << dirs[0];
|
|
||||||
mCurrentDirectory = dir;
|
mCurrentDirectory = dir;
|
||||||
selected.append(dir);
|
selected.append(dir);
|
||||||
dir = QDir::toNativeSeparators(dir);
|
dir = QDir::toNativeSeparators(dir);
|
||||||
|
|
Loading…
Reference in New Issue