Merge remote-tracking branch 'qubesos/pr/21'

* qubesos/pr/21:
  Sort items in Backup selection dialog
This commit is contained in:
Marek Marczykowski-Górecki 2017-01-10 02:48:01 +01:00
commit 684abd4a1b
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -180,6 +180,8 @@ class BackupVMsWindow(Ui_Backup, QWizard):
self.total_size += item.size
else:
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.total_size_label.setText(qubesutils.size_to_human(self.total_size))