From 4af788e96399141ec9111e0b8b8e6fa9d64da688 Mon Sep 17 00:00:00 2001 From: Peter Surda Date: Sat, 12 Nov 2016 15:41:58 +0100 Subject: [PATCH] Placeholder proxy text - based on what tor you're probably using (9150 for OSX and Windows, 9050 for others) --- src/bitmessageqt/settings.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/bitmessageqt/settings.py b/src/bitmessageqt/settings.py index a67c7f42..33b4c29d 100644 --- a/src/bitmessageqt/settings.py +++ b/src/bitmessageqt/settings.py @@ -9,6 +9,7 @@ from PyQt4 import QtCore, QtGui from languagebox import LanguageBox +from sys import platform try: _fromUtf8 = QtCore.QString.fromUtf8 @@ -166,12 +167,17 @@ class Ui_settingsDialog(object): self.gridLayout_2.addWidget(self.label_3, 1, 1, 1, 1) self.lineEditSocksHostname = QtGui.QLineEdit(self.groupBox_2) self.lineEditSocksHostname.setObjectName(_fromUtf8("lineEditSocksHostname")) + self.lineEditSocksHostname.setPlaceholderText(_fromUtf8("127.0.0.1")) self.gridLayout_2.addWidget(self.lineEditSocksHostname, 1, 2, 1, 2) self.label_4 = QtGui.QLabel(self.groupBox_2) self.label_4.setObjectName(_fromUtf8("label_4")) self.gridLayout_2.addWidget(self.label_4, 1, 4, 1, 1) self.lineEditSocksPort = QtGui.QLineEdit(self.groupBox_2) self.lineEditSocksPort.setObjectName(_fromUtf8("lineEditSocksPort")) + if platform in ['darwin', 'win32', 'win64']: + self.lineEditSocksPort.setPlaceholderText(_fromUtf8("9150")) + else: + self.lineEditSocksPort.setPlaceholderText(_fromUtf8("9050")) self.gridLayout_2.addWidget(self.lineEditSocksPort, 1, 5, 1, 1) self.checkBoxAuthentication = QtGui.QCheckBox(self.groupBox_2) self.checkBoxAuthentication.setObjectName(_fromUtf8("checkBoxAuthentication"))