Fixed bug related to save path

This commit is contained in:
Jeremy Borgman
2021-02-15 19:56:15 -06:00
committed by borgmanJeremy
parent 40bad756ad
commit be730cf29c
3 changed files with 3 additions and 16 deletions

View File

@@ -57,10 +57,10 @@ void GeneneralConf::updateComponents()
m_saveAfterCopy->setChecked(config.saveAfterCopyValue());
m_useJpgForClipboard->setChecked(config.useJpgForClipboard());
if (!config.saveAfterCopyPathValue().isEmpty()) {
m_savePath->setText(config.saveAfterCopyPathValue());
if (!config.savePath().isEmpty()) {
m_savePath->setText(config.savePath());
} else {
ConfigHandler().setSaveAfterCopyPath(
ConfigHandler().setSavePath(
QStandardPaths::writableLocation(QStandardPaths::PicturesLocation));
}
#if defined(Q_OS_LINUX) || defined(Q_OS_UNIX)