Skip to content

Commit

Permalink
Deleted unedeed updates after change of settings
Browse files Browse the repository at this point in the history
  • Loading branch information
donob4n committed Mar 21, 2020
1 parent c98ba62 commit f43394a
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions qubesmanager/qube_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -1206,30 +1206,10 @@ def action_settings_triggered(self):
vm = self.qubes_model.info_list[index.row()].vm

with common_threads.busy_cursor():
print("Creating settings windows")
settings_window = settings.VMSettingsWindow(
vm, self.qt_app, "basic")
print("Opening settings windows")
settings_window.exec_()

vm_deleted = False

try:
# the VM might not exist after running Settings - it might
# have been cloned or removed
self.vms_in_table[vm.qid].update()
except exc.QubesException:
# TODO: this will be replaced by proper signal handling once
# settings are migrated to AdminAPI
vm_deleted = True

if vm_deleted:
for row in self.vms_in_table:
try:
self.vms_in_table[row].update()
except exc.QubesException:
pass

# noinspection PyArgumentList
@QtCore.pyqtSlot(name='on_action_appmenus_triggered')
def action_appmenus_triggered(self):
Expand Down

0 comments on commit f43394a

Please sign in to comment.