This commit is contained in:
Kovid Goyal 2009-06-07 09:50:13 -07:00
parent e52b223b0f
commit 9bfacddc96

View File

@ -181,8 +181,8 @@ class LocationModel(QAbstractListModel):
return 1 + len([i for i in self.free if i >= 0])
def get_device_row(self, row):
if row == 1 and self.free[1] == -1 and self.free[2] > -1:
row = 2
if row == 2 and self.free[1] == -1 and self.free[2] > -1:
row = 3
return row
def data(self, index, role):