diff --git a/src/config/geneneralconf.cpp b/src/config/geneneralconf.cpp index d34b5ff0..3534d414 100644 --- a/src/config/geneneralconf.cpp +++ b/src/config/geneneralconf.cpp @@ -100,6 +100,12 @@ void GeneneralConf::importConfiguration() { void GeneneralConf::exportFileConfiguration() { QString fileName = QFileDialog::getSaveFileName(this, tr("Save File"), "flameshot.conf"); + + // Cancel button + if (fileName.isNull()) { + return; + } + QFile targetFile(fileName); if (targetFile.exists()) { targetFile.remove();