Skip to content

Commit

Permalink
Added note to open file dialogue in align highlighting that in window…
Browse files Browse the repository at this point in the history
…s, user will not see files in directory
  • Loading branch information
RussellGarwood committed Feb 1, 2020
1 parent 96ec703 commit 40b95d8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions SPIERSalign/src/mainwindowimpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
#include <QUrl>
#include <QVBoxLayout>
#include <QFont>
#include <QStandardPaths>

#include <math.h>
#include <qbitmap.h>
Expand Down Expand Up @@ -1932,8 +1933,8 @@ void MainWindowImpl::on_actionOpen_triggered()

if (fullSettingsFileName.isEmpty())
{
filesDirectoryString = QFileDialog::getExistingDirectory(this, tr("Select folder containing image files"),
"d:/", QFileDialog::ShowDirsOnly);
filesDirectoryString = QFileDialog::getExistingDirectory(this, tr("Select folder containing image files; note the files within a folder will not be listed if you are using Windows."),
QString(QStandardPaths::DesktopLocation), QFileDialog::ShowDirsOnly);
if (filesDirectoryString == "") return; //dialogue cancelled
filesDirectory = filesDirectoryString; //construct directory object
}
Expand Down Expand Up @@ -4266,8 +4267,8 @@ void MainWindowImpl::on_actionLoad_Settings_File_triggered()

int i, j = 0;
if ((QMessageBox::question(nullptr, "Confirm", "Are you sure you want to load a settings file? This will overwrite the current settings and apply the new ones to the currently open dataset.",
QMessageBox::Ok, QMessageBox::Cancel)) == QMessageBox::Cancel)return;
QString settingsFile = QFileDialog::getOpenFileName(this, tr("Select settings file"), "d:/");
QMessageBox::Ok, QMessageBox::Cancel)) == QMessageBox::Cancel) return;
QString settingsFile = QFileDialog::getOpenFileName(this, tr("Select settings file"), QString(QStandardPaths::DesktopLocation));
if (settingsFile == "") return;

QFile settings(settingsFile);
Expand Down

0 comments on commit 40b95d8

Please sign in to comment.