Fix block devices menu update (NameError)

This commit is contained in:
Marek Marczykowski-Górecki 2015-05-28 02:00:23 +02:00
parent 43bc59bfa6
commit e2fa049032

View File

@ -1747,7 +1747,7 @@ class QubesTrayIcon(QSystemTrayIcon):
trig_dev))
for this_vm in sorted(manager_window.qvm_collection.values(),
key=lambda x: x.name):
if not vm.is_running():
if not this_vm.is_running():
continue
if this_vm.qid == 0:
# skip dom0 to prevent (fatal) mistakes