astyle formatting

This commit is contained in:
Daniel Marjamäki 2013-08-21 22:53:46 +02:00
parent 4f76f8f558
commit 6e536b9e35
1 changed files with 6 additions and 6 deletions

View File

@ -416,12 +416,12 @@ 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();
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];