Sort items in Backup selection dialog

This commit is contained in:
unman 2017-01-05 02:58:03 +00:00
parent 6563f295ae
commit 0f1e7bb352
No known key found for this signature in database
GPG Key ID: FDD1B8244731B36C

View File

@ -180,6 +180,8 @@ class BackupVMsWindow(Ui_Backup, QWizard):
self.total_size += item.size self.total_size += item.size
else: else:
self.select_vms_widget.available_list.addItem(item) self.select_vms_widget.available_list.addItem(item)
self.select_vms_widget.available_list.sortItems()
self.select_vms_widget.selected_list.sortItems()
self.check_running() self.check_running()
self.total_size_label.setText(qubesutils.size_to_human(self.total_size)) self.total_size_label.setText(qubesutils.size_to_human(self.total_size))