[Pkg-privacy-commits] [onionshare] 195/256: #386 - put the connection radio buttons into their own group, which by default forces autoExclusive, thus preventing them from being all unset

Ulrike Uhlig ulrike at moszumanska.debian.org
Fri May 26 12:53:39 UTC 2017


This is an automated email from the git hooks/post-receive script.

ulrike pushed a commit to branch master
in repository onionshare.

commit f5ba3072760e7e9efab08074b1e68fd4ef89806c
Author: Miguel Jacq <mig at mig5.net>
Date:   Thu May 18 17:10:47 2017 +1000

    #386 - put the connection radio buttons into their own group, which by default forces autoExclusive, thus preventing them from being all unset
---
 onionshare_gui/settings_dialog.py | 16 +++++++++++-----
 1 file changed, 11 insertions(+), 5 deletions(-)

diff --git a/onionshare_gui/settings_dialog.py b/onionshare_gui/settings_dialog.py
index 1047783..79a3510 100644
--- a/onionshare_gui/settings_dialog.py
+++ b/onionshare_gui/settings_dialog.py
@@ -189,18 +189,23 @@ class SettingsDialog(QtWidgets.QDialog):
         self.connection_type_test_button = QtWidgets.QPushButton(strings._('gui_settings_connection_type_test_button', True))
         self.connection_type_test_button.clicked.connect(self.test_tor_clicked)
 
+        # Put the radios into their own group so they are exclusive
+        connection_type_radio_group_layout = QtWidgets.QVBoxLayout()
+        connection_type_radio_group_layout.addWidget(self.connection_type_bundled_radio)
+        connection_type_radio_group_layout.addWidget(self.connection_type_automatic_radio)
+        connection_type_radio_group_layout.addWidget(self.connection_type_control_port_radio)
+        connection_type_radio_group_layout.addWidget(self.connection_type_socket_file_radio)
+        connection_type_radio_group = QtWidgets.QGroupBox(strings._("gui_settings_connection_type_label", True))
+        connection_type_radio_group.setLayout(connection_type_radio_group_layout)
+
         # Connection type layout
         connection_type_group_layout = QtWidgets.QVBoxLayout()
-        connection_type_group_layout.addWidget(self.connection_type_bundled_radio)
-        connection_type_group_layout.addWidget(self.connection_type_automatic_radio)
-        connection_type_group_layout.addWidget(self.connection_type_control_port_radio)
-        connection_type_group_layout.addWidget(self.connection_type_socket_file_radio)
         connection_type_group_layout.addWidget(self.connection_type_control_port_extras)
         connection_type_group_layout.addWidget(self.connection_type_socket_file_extras)
         connection_type_group_layout.addWidget(self.connection_type_socks)
         connection_type_group_layout.addWidget(self.authenticate_group)
         connection_type_group_layout.addWidget(self.connection_type_test_button)
-        connection_type_group = QtWidgets.QGroupBox(strings._("gui_settings_connection_type_label", True))
+        connection_type_group = QtWidgets.QGroupBox()
         connection_type_group.setLayout(connection_type_group_layout)
 
         # Buttons
@@ -226,6 +231,7 @@ class SettingsDialog(QtWidgets.QDialog):
         left_col_layout.addStretch()
 
         right_col_layout = QtWidgets.QVBoxLayout()
+        right_col_layout.addWidget(connection_type_radio_group)
         right_col_layout.addWidget(connection_type_group)
         right_col_layout.addWidget(self.tor_status)
         right_col_layout.addStretch()

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/onionshare.git



More information about the Pkg-privacy-commits mailing list