Resolve pylint warnings

This commit is contained in:
Dmitri Bogomolov 2019-03-21 12:41:29 +02:00
parent 71e4c29419
commit 5a9a2dd54c
Signed by untrusted user: g1itch
GPG Key ID: 720A756F18DEED13
2 changed files with 4 additions and 2 deletions

View File

@ -282,8 +282,6 @@ class MyForm(settingsmixin.SMainWindow):
))
def init_chan_popup_menu(self, connectSignal=True):
# Popup menu for the Channels tab
self.ui.addressContextMenuToolbar = QtGui.QToolBar()
# Actions
self.actionNew = self.ui.addressContextMenuToolbar.addAction(_translate(
"MainWindow", "New"), self.on_action_YourIdentitiesNew)
@ -2610,6 +2608,7 @@ class MyForm(settingsmixin.SMainWindow):
pass
def on_action_Send(self):
"""Send message to current selected address"""
self.click_pushButtonClear()
self.ui.lineEditTo.setText(self.getCurrentAccount())
self.ui.tabWidget.setCurrentIndex(
@ -2617,6 +2616,7 @@ class MyForm(settingsmixin.SMainWindow):
)
def on_action_SpecialAddressBehaviorDialog(self):
"""Show SpecialAddressBehaviorDialog"""
dialogs.SpecialAddressBehaviorDialog(self, BMConfigParser())
def on_action_EmailGatewayDialog(self):

View File

@ -654,6 +654,8 @@ class Ui_MainWindow(object):
# Popup menu actions container for the Sent page
# pylint: disable=attribute-defined-outside-init
self.sentContextMenuToolbar = QtGui.QToolBar()
# Popup menu actions container for chans tree
self.addressContextMenuToolbar = QtGui.QToolBar()
def updateNetworkSwitchMenuLabel(self, dontconnect=None):
if dontconnect is None: