Took into account pylint undefined-loop-variable warnings
This commit is contained in:
parent
0c1e516921
commit
a5300e8584
|
@ -1801,6 +1801,7 @@ class MyForm(settingsmixin.SMainWindow):
|
||||||
self.ui.tableWidgetInboxSubscriptions,
|
self.ui.tableWidgetInboxSubscriptions,
|
||||||
self.ui.tableWidgetInboxChans
|
self.ui.tableWidgetInboxChans
|
||||||
):
|
):
|
||||||
|
i = None
|
||||||
for i in range(inbox.rowCount()):
|
for i in range(inbox.rowCount()):
|
||||||
if msgid == \
|
if msgid == \
|
||||||
inbox.item(i, 3).data(QtCore.Qt.UserRole).toPyObject():
|
inbox.item(i, 3).data(QtCore.Qt.UserRole).toPyObject():
|
||||||
|
@ -1813,6 +1814,7 @@ class MyForm(settingsmixin.SMainWindow):
|
||||||
# wrong assumption about current folder here:
|
# wrong assumption about current folder here:
|
||||||
self.getCurrentFolder(treeWidget), treeWidget
|
self.getCurrentFolder(treeWidget), treeWidget
|
||||||
)
|
)
|
||||||
|
if i:
|
||||||
inbox.removeRow(i)
|
inbox.removeRow(i)
|
||||||
|
|
||||||
def newVersionAvailable(self, version):
|
def newVersionAvailable(self, version):
|
||||||
|
@ -2311,6 +2313,7 @@ class MyForm(settingsmixin.SMainWindow):
|
||||||
acct.parseMessage(toAddress, fromAddress, subject, "")
|
acct.parseMessage(toAddress, fromAddress, subject, "")
|
||||||
else:
|
else:
|
||||||
acct = ret
|
acct = ret
|
||||||
|
# pylint:disable=undefined-loop-variable
|
||||||
self.propagateUnreadCount(widget=treeWidget if ret else None)
|
self.propagateUnreadCount(widget=treeWidget if ret else None)
|
||||||
if BMConfigParser().getboolean(
|
if BMConfigParser().getboolean(
|
||||||
'bitmessagesettings', 'showtraynotifications'):
|
'bitmessagesettings', 'showtraynotifications'):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user