Handled pylint warnings (closes #1436)

This commit is contained in:
Dmitri Bogomolov 2019-03-04 12:26:25 +02:00
parent d1c601e7ae
commit 87bf2ac1f5
Signed by untrusted user: g1itch
GPG Key ID: 720A756F18DEED13
2 changed files with 6 additions and 2 deletions

View File

@ -369,8 +369,6 @@ class MyForm(settingsmixin.SMainWindow):
self.on_context_menuSubscriptions)
def init_sent_popup_menu(self, connectSignal=True):
# Popup menu for the Sent page
self.ui.sentContextMenuToolbar = QtGui.QToolBar()
# Actions
self.actionTrashSentMessage = self.ui.sentContextMenuToolbar.addAction(
_translate(
@ -3005,6 +3003,8 @@ class MyForm(settingsmixin.SMainWindow):
self.on_action_InboxReply(self.REPLY_TYPE_UPD)
def on_action_InboxReply(self, reply_type=None):
"""Handle any reply action depending on reply_type"""
# pylint: disable=too-many-locals
tableWidget = self.getCurrentMessagelist()
if not tableWidget:
return

View File

@ -651,6 +651,10 @@ class Ui_MainWindow(object):
MainWindow.setTabOrder(self.lineEditSubject, self.textEditMessage)
MainWindow.setTabOrder(self.textEditMessage, self.pushButtonAddSubscription)
# Popup menu actions container for the Sent page
# pylint: disable=attribute-defined-outside-init
self.sentContextMenuToolbar = QtGui.QToolBar()
def updateNetworkSwitchMenuLabel(self, dontconnect=None):
if dontconnect is None:
dontconnect = BMConfigParser().safeGetBoolean(