Merge branch 'master_nc' into feature/RND-598-flameshot-copy-file-path-not-url-on-saving-to-disk

This commit is contained in:
Yurii Puchkov
2020-09-04 02:18:02 -07:00
committed by GitHub

View File

@@ -62,12 +62,13 @@ void FilePathConfiguration::screenshotPathFixedSet() {
QFileDialog *dirDialog = new QFileDialog(this, tr("Select default path for Screenshots"));
dirDialog->setFileMode(QFileDialog::DirectoryOnly);
dirDialog->setOption(QFileDialog::ShowDirsOnly, true);
QString filePath = dirDialog->getOpenFileName();
QDir d = QFileInfo(filePath).absoluteDir();
QString absolutePath = d.absolutePath();
m_screenshotPathFixedDefault->setText(absolutePath);
ConfigHandler config;
config.setSavePathFixed(absolutePath);
if (dirDialog->exec()) {
QDir d = dirDialog->directory();
QString absolutePath = d.absolutePath();
m_screenshotPathFixedDefault->setText(absolutePath);
ConfigHandler config;
config.setSavePathFixed(absolutePath);
}
}
void FilePathConfiguration::screenshotPathFixedClear() {