1
0
Fork 0
mirror of https://github.com/borgbase/vorta synced 2025-02-21 22:06:57 +00:00

Fix Issue "Crash when cancelling "add new profile" #168" (#170)

This commit is contained in:
Hofer-Julian 2019-01-28 01:36:17 +01:00 committed by Manuel Riel
parent 2aed062caf
commit 7526a03a21

View file

@ -99,7 +99,7 @@ def profile_select_action(self, index):
self.profileSelector.addItem(window.edited_profile.name, window.edited_profile.id)
self.profileSelector.setCurrentIndex(self.profileSelector.count() - 1)
else:
self.profileSelector.setCurrentIndex(1)
self.profileSelector.setCurrentIndex(2)
self.current_profile = BackupProfileModel.get(id=self.profileSelector.currentData())
self.archiveTab.populate_from_profile()