Fix showing inactive VMs

Previously if Qubes Manager was started with inactive VMs hidden,
toggling "show inactive VMs" option wasn't enough to show them. This is
because we set RowHidden to False only when both show_inactive and
show_internal are set.
This commit fixes the issue.
This commit is contained in:
Marek Marczykowski 2013-04-13 04:13:34 +02:00
parent 3994038d76
commit 0f175b5c92

View File

@ -1036,6 +1036,8 @@ class VmManagerWindow(Ui_VmManagerWindow, QMainWindow):
internal = widget.vm.internal internal = widget.vm.internal
if not (show_inactive or running) or not (show_internal or not internal): if not (show_inactive or running) or not (show_internal or not internal):
self.table.setRowHidden(row_no, True) self.table.setRowHidden(row_no, True)
else:
self.table.setRowHidden(row_no, False)
row_no += 1 row_no += 1
def mark_table_for_update(self): def mark_table_for_update(self):