diff options
Diffstat (limited to 'src/ui/main_window/MainWindowFileSlotFunction.cpp')
-rw-r--r-- | src/ui/main_window/MainWindowFileSlotFunction.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/main_window/MainWindowFileSlotFunction.cpp b/src/ui/main_window/MainWindowFileSlotFunction.cpp index a3a44e68..97cb6a8d 100644 --- a/src/ui/main_window/MainWindowFileSlotFunction.cpp +++ b/src/ui/main_window/MainWindowFileSlotFunction.cpp @@ -313,7 +313,7 @@ void MainWindow::SlotFileDecrypt() { } // extract the tarball - if (out_path.extension() == ".tar") { + if (out_path.extension() == ".tar" && exists(out_path)) { bool ret = QMessageBox::information( this, _("Decrypting"), _("Do you want to extract and delete the decrypted tarball?"), @@ -690,7 +690,7 @@ void MainWindow::SlotFileDecryptVerify() { } // extract the tarball - if (out_path.extension() == ".tar") { + if (out_path.extension() == ".tar" && exists(out_path)) { bool ret = QMessageBox::information( this, _("Decrypting"), _("Do you want to extract and delete the decrypted tarball?"), |