summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMicah Lee <micah@micahflee.com>2015-05-18 11:05:33 -0700
committerMicah Lee <micah@micahflee.com>2015-05-18 11:05:33 -0700
commiteb9dc99a1907ed69917c5f0c56aeb2093648ec30 (patch)
tree56bc4cedfec4dd64edcda2139e24c4a0f02e487b
parent288e8ca5321a8d20935059dc99d51ff731868770 (diff)
downloadonionshare-eb9dc99a1907ed69917c5f0c56aeb2093648ec30.tar.gz
onionshare-eb9dc99a1907ed69917c5f0c56aeb2093648ec30.zip
URL display is no longer tiny, and window gets autoresized if URL is too big (fixes #183)
-rw-r--r--onionshare_gui/server_status.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/onionshare_gui/server_status.py b/onionshare_gui/server_status.py
index efb481fe..579e2e8f 100644
--- a/onionshare_gui/server_status.py
+++ b/onionshare_gui/server_status.py
@@ -56,7 +56,6 @@ class ServerStatus(QtGui.QVBoxLayout):
# url layout
url_font = QtGui.QFont()
- url_font.setPointSize(8)
self.url_label = QtGui.QLabel()
self.url_label.setFont(url_font)
self.url_label.setWordWrap(True)
@@ -87,6 +86,10 @@ class ServerStatus(QtGui.QVBoxLayout):
self.url_label.setText('http://{0:s}/ {1:s}'.format(self.app.onion_host, self.web.slug))
self.url_label.show()
self.copy_url_button.show()
+
+ # resize parent widget
+ p = self.parentWidget()
+ p.resize(p.sizeHint())
else:
self.url_label.hide()
self.copy_url_button.hide()