Skip to content

Commit

Permalink
Style change
Browse files Browse the repository at this point in the history
  • Loading branch information
donob4n committed Jul 25, 2020
1 parent 42ae96c commit 88a54dc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions qubesmanager/tests/test_qube_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -1271,16 +1271,16 @@ def __check_sorting(self, column_name):

def _get_table_vminfo(self, row):
model = self.dialog.table.model()
return model.data(model.index(row, 0), Qt.UserRole)
return model.index(row, 0).data(Qt.UserRole)

def _get_table_vm(self, row):
model = self.dialog.table.model()
return model.data(model.index(row, 0), Qt.UserRole).vm
return model.index(row, 0).data(Qt.UserRole).vm

def _get_table_item(self, row, column_name, role = Qt.DisplayRole):
model = self.dialog.table.model()
column = self.dialog.qubes_model.columns_indices.index(column_name)
return model.data(model.index(row, column), role)
return model.index(row, column).data(role)

class QubeManagerThreadTest(unittest.TestCase):
def test_01_startvm_thread(self):
Expand Down

0 comments on commit 88a54dc

Please sign in to comment.