Allow selecting export folder.

This commit is contained in:
John Preston
2018-06-20 19:12:47 +01:00
parent 154e5660de
commit 156c3d288c
7 changed files with 28 additions and 17 deletions
@@ -232,11 +232,12 @@ bool Controller::normalizePath() {
};
QDir folder(_settings.path);
const auto path = folder.absolutePath();
_settings.path = path + '/';
_settings.path = path.endsWith('/') ? path : (path + '/');
if (!folder.exists()) {
return check();
}
const auto list = folder.entryInfoList();
const auto mode = QDir::AllEntries | QDir::NoDotAndDotDot;
const auto list = folder.entryInfoList(mode);
if (list.isEmpty()) {
return true;
}