diff --git a/src/bitmessageqt/__init__.py b/src/bitmessageqt/__init__.py
index af595a48..c45197b6 100644
--- a/src/bitmessageqt/__init__.py
+++ b/src/bitmessageqt/__init__.py
@@ -233,7 +233,7 @@ class MyForm(QtGui.QMainWindow):
QtCore.QObject.connect(self.ui.actionHelp, QtCore.SIGNAL(
"triggered()"), self.click_actionHelp)
- def init_inbox_popup_menu(self, connectSignal=True):
+ def init_inbox_popup_menu(self):
# Popup menu for the Inbox tab
self.ui.inboxContextMenuToolbar = QtGui.QToolBar()
# Actions
@@ -259,10 +259,9 @@ class MyForm(QtGui.QMainWindow):
"MainWindow", "Mark Unread"), self.on_action_InboxMarkUnread)
self.ui.tableWidgetInbox.setContextMenuPolicy(
QtCore.Qt.CustomContextMenu)
- if connectSignal:
- self.connect(self.ui.tableWidgetInbox, QtCore.SIGNAL(
- 'customContextMenuRequested(const QPoint&)'),
- self.on_context_menuInbox)
+ self.connect(self.ui.tableWidgetInbox, QtCore.SIGNAL(
+ 'customContextMenuRequested(const QPoint&)'),
+ self.on_context_menuInbox)
self.popMenuInbox = QtGui.QMenu(self)
self.popMenuInbox.addAction(self.actionForceHtml)
self.popMenuInbox.addAction(self.actionMarkUnread)
@@ -273,7 +272,7 @@ class MyForm(QtGui.QMainWindow):
self.popMenuInbox.addAction(self.actionSaveMessageAs)
self.popMenuInbox.addAction(self.actionTrashInboxMessage)
- def init_identities_popup_menu(self, connectSignal=True):
+ def init_identities_popup_menu(self):
# Popup menu for the Your Identities tab
self.ui.addressContextMenuToolbar = QtGui.QToolBar()
# Actions
@@ -299,10 +298,9 @@ class MyForm(QtGui.QMainWindow):
self.on_action_SpecialAddressBehaviorDialog)
self.ui.tableWidgetYourIdentities.setContextMenuPolicy(
QtCore.Qt.CustomContextMenu)
- if connectSignal:
- self.connect(self.ui.tableWidgetYourIdentities, QtCore.SIGNAL(
- 'customContextMenuRequested(const QPoint&)'),
- self.on_context_menuYourIdentities)
+ self.connect(self.ui.tableWidgetYourIdentities, QtCore.SIGNAL(
+ 'customContextMenuRequested(const QPoint&)'),
+ self.on_context_menuYourIdentities)
self.popMenu = QtGui.QMenu(self)
self.popMenu.addAction(self.actionNew)
self.popMenu.addSeparator()
@@ -313,7 +311,7 @@ class MyForm(QtGui.QMainWindow):
self.popMenu.addAction(self.actionSetAvatar)
self.popMenu.addAction(self.actionSpecialAddressBehavior)
- def init_addressbook_popup_menu(self, connectSignal=True):
+ def init_addressbook_popup_menu(self):
# Popup menu for the Address Book page
self.ui.addressBookContextMenuToolbar = QtGui.QToolBar()
# Actions
@@ -341,10 +339,9 @@ class MyForm(QtGui.QMainWindow):
"MainWindow", "Delete"), self.on_action_AddressBookDelete)
self.ui.tableWidgetAddressBook.setContextMenuPolicy(
QtCore.Qt.CustomContextMenu)
- if connectSignal:
- self.connect(self.ui.tableWidgetAddressBook, QtCore.SIGNAL(
- 'customContextMenuRequested(const QPoint&)'),
- self.on_context_menuAddressBook)
+ self.connect(self.ui.tableWidgetAddressBook, QtCore.SIGNAL(
+ 'customContextMenuRequested(const QPoint&)'),
+ self.on_context_menuAddressBook)
self.popMenuAddressBook = QtGui.QMenu(self)
self.popMenuAddressBook.addAction(self.actionAddressBookSend)
self.popMenuAddressBook.addAction(self.actionAddressBookClipboard)
@@ -354,7 +351,7 @@ class MyForm(QtGui.QMainWindow):
self.popMenuAddressBook.addAction(self.actionAddressBookNew)
self.popMenuAddressBook.addAction(self.actionAddressBookDelete)
- def init_subscriptions_popup_menu(self, connectSignal=True):
+ def init_subscriptions_popup_menu(self):
# Popup menu for the Subscriptions page
self.ui.subscriptionsContextMenuToolbar = QtGui.QToolBar()
# Actions
@@ -377,10 +374,9 @@ class MyForm(QtGui.QMainWindow):
self.on_action_SubscriptionsSetAvatar)
self.ui.tableWidgetSubscriptions.setContextMenuPolicy(
QtCore.Qt.CustomContextMenu)
- if connectSignal:
- self.connect(self.ui.tableWidgetSubscriptions, QtCore.SIGNAL(
- 'customContextMenuRequested(const QPoint&)'),
- self.on_context_menuSubscriptions)
+ self.connect(self.ui.tableWidgetSubscriptions, QtCore.SIGNAL(
+ 'customContextMenuRequested(const QPoint&)'),
+ self.on_context_menuSubscriptions)
self.popMenuSubscriptions = QtGui.QMenu(self)
self.popMenuSubscriptions.addAction(self.actionsubscriptionsNew)
self.popMenuSubscriptions.addAction(self.actionsubscriptionsDelete)
@@ -391,7 +387,7 @@ class MyForm(QtGui.QMainWindow):
self.popMenuSubscriptions.addSeparator()
self.popMenuSubscriptions.addAction(self.actionsubscriptionsClipboard)
- def init_sent_popup_menu(self, connectSignal=True):
+ def init_sent_popup_menu(self):
# Popup menu for the Sent page
self.ui.sentContextMenuToolbar = QtGui.QToolBar()
# Actions
@@ -407,15 +403,14 @@ class MyForm(QtGui.QMainWindow):
"MainWindow", "Force send"), self.on_action_ForceSend)
self.ui.tableWidgetSent.setContextMenuPolicy(
QtCore.Qt.CustomContextMenu)
- if connectSignal:
- self.connect(self.ui.tableWidgetSent, QtCore.SIGNAL(
- 'customContextMenuRequested(const QPoint&)'),
- self.on_context_menuSent)
+ self.connect(self.ui.tableWidgetSent, QtCore.SIGNAL(
+ 'customContextMenuRequested(const QPoint&)'),
+ self.on_context_menuSent)
# self.popMenuSent = QtGui.QMenu( self )
# self.popMenuSent.addAction( self.actionSentClipboard )
# self.popMenuSent.addAction( self.actionTrashSentMessage )
- def init_blacklist_popup_menu(self, connectSignal=True):
+ def init_blacklist_popup_menu(self):
# Popup menu for the Blacklist page
self.ui.blacklistContextMenuToolbar = QtGui.QToolBar()
# Actions
@@ -441,10 +436,9 @@ class MyForm(QtGui.QMainWindow):
self.on_action_BlacklistSetAvatar)
self.ui.tableWidgetBlacklist.setContextMenuPolicy(
QtCore.Qt.CustomContextMenu)
- if connectSignal:
- self.connect(self.ui.tableWidgetBlacklist, QtCore.SIGNAL(
- 'customContextMenuRequested(const QPoint&)'),
- self.on_context_menuBlacklist)
+ self.connect(self.ui.tableWidgetBlacklist, QtCore.SIGNAL(
+ 'customContextMenuRequested(const QPoint&)'),
+ self.on_context_menuBlacklist)
self.popMenuBlacklist = QtGui.QMenu(self)
# self.popMenuBlacklist.addAction( self.actionBlacklistNew )
self.popMenuBlacklist.addAction(self.actionBlacklistDelete)
@@ -1442,26 +1436,18 @@ class MyForm(QtGui.QMainWindow):
def changeEvent(self, event):
if event.type() == QtCore.QEvent.LanguageChange:
self.ui.retranslateUi(self)
- self.init_inbox_popup_menu(False)
- self.init_identities_popup_menu(False)
- self.init_addressbook_popup_menu(False)
- self.init_subscriptions_popup_menu(False)
- self.init_sent_popup_menu(False)
- self.init_blacklist_popup_menu(False)
if event.type() == QtCore.QEvent.WindowStateChange:
if self.windowState() & QtCore.Qt.WindowMinimized:
- self.actionShow.setChecked(False)
- if shared.config.getboolean('bitmessagesettings', 'minimizetotray') and not 'darwin' in sys.platform:
- if event.type() == QtCore.QEvent.WindowStateChange:
- if self.windowState() & QtCore.Qt.WindowMinimized:
+ if shared.config.getboolean('bitmessagesettings', 'minimizetotray') and not 'darwin' in sys.platform:
self.appIndicatorHide()
if 'win32' in sys.platform or 'win64' in sys.platform:
- self.setWindowFlags(Qt.ToolTip)
- elif event.oldState() & QtCore.Qt.WindowMinimized:
- # The window state has just been changed to
- # Normal/Maximised/FullScreen
- pass
- # QtGui.QWidget.changeEvent(self, event)
+ self.setWindowFlags(Qt.ToolTip)
+ elif event.oldState() & QtCore.Qt.WindowMinimized:
+ # The window state has just been changed to
+ # Normal/Maximised/FullScreen
+ pass
+ # QtGui.QWidget.changeEvent(self, event)
+
def __icon_activated(self, reason):
if reason == QtGui.QSystemTrayIcon.Trigger:
@@ -3449,9 +3435,6 @@ class settingsDialog(QtGui.QDialog):
self.ui.checkBoxStartOnLogon.setDisabled(True)
self.ui.checkBoxStartOnLogon.setText(_translate(
"MainWindow", "Start-on-login not yet supported on your OS."))
- self.ui.checkBoxMinimizeToTray.setDisabled(True)
- self.ui.checkBoxMinimizeToTray.setText(_translate(
- "MainWindow", "Minimize-to-tray not yet supported on your OS."))
# On the Network settings tab:
self.ui.lineEditTCPPort.setText(str(
shared.config.get('bitmessagesettings', 'port')))
diff --git a/src/translations/bitmessage_nl.ts b/src/translations/bitmessage_nl.ts
index 54237fdd..654d993a 100644
--- a/src/translations/bitmessage_nl.ts
+++ b/src/translations/bitmessage_nl.ts
@@ -44,7 +44,7 @@
- Bekijk HTML als geformatteerde tekst
+
@@ -84,7 +84,7 @@
- Stuur bericht naar dit adres
+
@@ -94,7 +94,7 @@
- Nieuw adres toevoegen
+
@@ -104,7 +104,7 @@
- Kopieer bestemmingsadres naar klembord
+
@@ -139,7 +139,7 @@
- Bericht verzonden. Wachten op bevestiging. Verzonden op %1
+
@@ -154,7 +154,7 @@
- Bevestiging van het bericht ontvangen op %1
+
@@ -184,7 +184,7 @@
- Status onbekend: %1 %2
+
@@ -204,7 +204,7 @@
- Abonneer
+
@@ -231,7 +231,7 @@ It is important that you back up this file.
- keys.dat openen?
+
@@ -288,7 +288,7 @@ It is important that you back up this file. Would you like to open the file now?
- Gelukt
+
@@ -298,7 +298,7 @@ It is important that you back up this file. Would you like to open the file now?
- Adres te nieuw
+
@@ -313,7 +313,7 @@ It is important that you back up this file. Would you like to open the file now?
- Dat Bitmessage adres is niet geldig.
+
@@ -333,17 +333,17 @@ It is important that you back up this file. Would you like to open the file now?
- Verwerkt %1 peer-to-peer-bericht(en).
+
- Verwerkt %1 broadcast-bericht(en).
+
- Verwerkt %1 publieke sleutel(s).
+
@@ -408,7 +408,7 @@ It is important that you back up this file. Would you like to open the file now?
- Adres versienummer
+
@@ -458,7 +458,7 @@ It is important that you back up this file. Would you like to open the file now?
- Van
+ Van
@@ -468,7 +468,7 @@ It is important that you back up this file. Would you like to open the file now?
- Het ingevoerd adres is ongeldig. Worden genegeerd.
+
@@ -568,7 +568,7 @@ It is important that you back up this file. Would you like to open the file now?
- Geen adressen geselecteerd.
+ Geen adressen geselecteerd
@@ -733,7 +733,7 @@ It is important that you back up this file. Would you like to open the file now?
- Uw identiteiten
+ Je identiteiten
@@ -803,22 +803,22 @@ It is important that you back up this file. Would you like to open the file now?
- Verwerkt 0 peer-to-peer-bericht.
+
- Verwerkt 0 broadcast-bericht.
+
- Verwerkt 0 publieke sleutel.
+
- netwerkstatus
+
@@ -848,7 +848,7 @@ It is important that you back up this file. Would you like to open the file now?
- Ctrl+Q
+ Ctrrl+Q
@@ -883,7 +883,7 @@ It is important that you back up this file. Would you like to open the file now?
- Slechte adres versienummer
+
@@ -1150,7 +1150,7 @@ The 'Random Number' option is selected by default but deterministic ad
- Over
+
@@ -1173,7 +1173,7 @@ The 'Random Number' option is selected by default but deterministic ad
- Bitmessage
+
@@ -1528,7 +1528,7 @@ The 'Random Number' option is selected by default but deterministic ad
- Wachtwoord
+
@@ -1563,7 +1563,7 @@ The 'Random Number' option is selected by default but deterministic ad
- Interface Taal
+
@@ -1633,22 +1633,22 @@ The 'Random Number' option is selected by default but deterministic ad
- Opgeven na
+
- en
+
- dagen
+
- maanden.
+