Handled pylint warnings (closes #1436)
This commit is contained in:
parent
d1c601e7ae
commit
87bf2ac1f5
|
@ -369,8 +369,6 @@ class MyForm(settingsmixin.SMainWindow):
|
||||||
self.on_context_menuSubscriptions)
|
self.on_context_menuSubscriptions)
|
||||||
|
|
||||||
def init_sent_popup_menu(self, connectSignal=True):
|
def init_sent_popup_menu(self, connectSignal=True):
|
||||||
# Popup menu for the Sent page
|
|
||||||
self.ui.sentContextMenuToolbar = QtGui.QToolBar()
|
|
||||||
# Actions
|
# Actions
|
||||||
self.actionTrashSentMessage = self.ui.sentContextMenuToolbar.addAction(
|
self.actionTrashSentMessage = self.ui.sentContextMenuToolbar.addAction(
|
||||||
_translate(
|
_translate(
|
||||||
|
@ -3005,6 +3003,8 @@ class MyForm(settingsmixin.SMainWindow):
|
||||||
self.on_action_InboxReply(self.REPLY_TYPE_UPD)
|
self.on_action_InboxReply(self.REPLY_TYPE_UPD)
|
||||||
|
|
||||||
def on_action_InboxReply(self, reply_type=None):
|
def on_action_InboxReply(self, reply_type=None):
|
||||||
|
"""Handle any reply action depending on reply_type"""
|
||||||
|
# pylint: disable=too-many-locals
|
||||||
tableWidget = self.getCurrentMessagelist()
|
tableWidget = self.getCurrentMessagelist()
|
||||||
if not tableWidget:
|
if not tableWidget:
|
||||||
return
|
return
|
||||||
|
|
|
@ -651,6 +651,10 @@ class Ui_MainWindow(object):
|
||||||
MainWindow.setTabOrder(self.lineEditSubject, self.textEditMessage)
|
MainWindow.setTabOrder(self.lineEditSubject, self.textEditMessage)
|
||||||
MainWindow.setTabOrder(self.textEditMessage, self.pushButtonAddSubscription)
|
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):
|
def updateNetworkSwitchMenuLabel(self, dontconnect=None):
|
||||||
if dontconnect is None:
|
if dontconnect is None:
|
||||||
dontconnect = BMConfigParser().safeGetBoolean(
|
dontconnect = BMConfigParser().safeGetBoolean(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user