This commit is contained in:
Petr Kalis 2021-04-21 22:15:50 +02:00
parent 6742fc8900
commit 498151db82
2 changed files with 4 additions and 5 deletions

View file

@ -452,10 +452,10 @@ class SyncRepresentationSummaryModel(_SyncRepresentationModel):
if role == lib.FailedRole:
if header_value == 'local_site':
return item.status == lib.STATUS[2] and \
item.local_progress < 1
item.local_progress < 1
if header_value == 'remote_site':
return item.status == lib.STATUS[2] and \
item.remote_progress < 1
item.remote_progress < 1
if role == Qt.DisplayRole:
# because of ImageDelegate
@ -929,10 +929,10 @@ class SyncRepresentationDetailModel(_SyncRepresentationModel):
if role == lib.FailedRole:
if header_value == 'local_site':
return item.status == lib.STATUS[2] and \
item.local_progress < 1
item.local_progress < 1
if header_value == 'remote_site':
return item.status == lib.STATUS[2] and \
item.remote_progress <1
item.remote_progress <1
if role == Qt.DisplayRole:
# because of ImageDelegate

View file

@ -1101,4 +1101,3 @@ class HorizontalHeader(QtWidgets.QHeaderView):
pos_y,
self.height(),
self.height())