Fix ternary operator use to translate "Copy subject to clipboard"

This commit is contained in:
Dmitri Bogomolov 2019-05-22 17:55:48 +03:00
parent 828f4d207f
commit 3e800c72a0
Signed by untrusted user: g1itch
GPG Key ID: 720A756F18DEED13

View File

@ -3986,9 +3986,9 @@ class MyForm(settingsmixin.SMainWindow):
self.popMenuInbox.addAction(self.actionReply)
self.popMenuInbox.addAction(self.actionAddSenderToAddressBook)
self.actionClipboardMessagelist = self.ui.inboxContextMenuToolbar.addAction(
_translate("MainWindow",
"Copy subject to clipboard" if tableWidget.currentColumn() == 2 else "Copy address to clipboard"
),
_translate("MainWindow", "Copy subject to clipboard")
if tableWidget.currentColumn() == 2 else
_translate("MainWindow", "Copy address to clipboard"),
self.on_action_ClipboardMessagelist)
self.popMenuInbox.addAction(self.actionClipboardMessagelist)
self.popMenuInbox.addSeparator()