From 2700a365373e8cebb5977aea0472eff34fec758f Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Sun, 28 Apr 2019 20:34:35 +0200 Subject: [PATCH] add the mount check to the delete method --- borg_qt/main_window.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/borg_qt/main_window.py b/borg_qt/main_window.py index 34db17e..6bbadab 100644 --- a/borg_qt/main_window.py +++ b/borg_qt/main_window.py @@ -189,6 +189,8 @@ class MainWindow(QMainWindow): def delete_backup(self): """Deletes the selected archive from the repository.""" + if not self._check_mounts(): + return try: archive_name = self.selected_archive except AttributeError: