2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Always export to subfolder of Downloads.

This commit is contained in:
John Preston
2018-09-19 15:56:08 +03:00
parent 00e4cfc345
commit 233a87a8bc
5 changed files with 29 additions and 12 deletions

View File

@@ -23,12 +23,12 @@ QString NormalizePath(const Settings &settings) {
QDir folder(settings.path);
const auto path = folder.absolutePath();
auto result = path.endsWith('/') ? path : (path + '/');
if (!folder.exists()) {
if (!folder.exists() && !settings.forceSubPath) {
return result;
}
const auto mode = QDir::AllEntries | QDir::NoDotAndDotDot;
const auto list = folder.entryInfoList(mode);
if (list.isEmpty()) {
if (list.isEmpty() && !settings.forceSubPath) {
return result;
}
const auto date = QDate::currentDate();