diff --git a/src/vorta/borg/create.py b/src/vorta/borg/create.py index db5ee99a..be1a6b88 100644 --- a/src/vorta/borg/create.py +++ b/src/vorta/borg/create.py @@ -32,7 +32,10 @@ class BorgCreateThread(BorgThread): repo.total_unique_chunks = stats['total_unique_chunks'] repo.save() - self.app.backup_progress_event.emit(self.tr('Backup finished.')) + if result['returncode'] == 1: + self.app.backup_progress_event.emit(self.tr('Backup finished with warnings. See logs for details.')) + else: + self.app.backup_progress_event.emit(self.tr('Backup finished.')) def progress_event(self, fmt): self.app.backup_progress_event.emit(fmt) diff --git a/src/vorta/views/source_tab.py b/src/vorta/views/source_tab.py index f5b02d5a..21986302 100644 --- a/src/vorta/views/source_tab.py +++ b/src/vorta/views/source_tab.py @@ -157,6 +157,12 @@ class SourceTab(SourceBase, SourceUI, BackupProfileMixin): def receive(): dirs = dialog.selectedFiles() for dir in dirs: + if not os.access(dir, os.R_OK): + msg = QMessageBox() + msg.setText(self.tr(f"You don't have read access to {dir}.")) + msg.exec() + return + new_source, created = SourceFileModel.get_or_create(dir=dir, profile=self.profile()) if created: self.add_source_to_table(new_source)