add the mount check to the delete method

This commit is contained in:
Andreas Zweili 2019-04-28 20:34:35 +02:00
parent bf8d132620
commit 2700a36537
1 changed files with 2 additions and 0 deletions

View File

@ -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: