summaryrefslogtreecommitdiff
path: root/onionshare_gui
diff options
context:
space:
mode:
authorMiguel Jacq <mig@mig5.net>2019-09-09 16:35:05 +1000
committerMiguel Jacq <mig@mig5.net>2019-09-09 16:35:05 +1000
commit90ebc3aab424637dbb75017df6b0204b82d6fe69 (patch)
tree0cbb32ff8726d47fa6ab432fa574d48070b6f5a1 /onionshare_gui
parent8e238ab2d66c336029a54f54f6d989b46964d448 (diff)
downloadonionshare-90ebc3aab424637dbb75017df6b0204b82d6fe69.tar.gz
onionshare-90ebc3aab424637dbb75017df6b0204b82d6fe69.zip
Fix the discrepancy between SendBaseModeWeb and Web objects' separate cur_history_id attibutes, ensuring that when we call web.error404() we send a new history_id integer for communicating back to the frontend. Add tests for this
Diffstat (limited to 'onionshare_gui')
-rw-r--r--onionshare_gui/mode/history.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/onionshare_gui/mode/history.py b/onionshare_gui/mode/history.py
index 5dad9614..b8baebd1 100644
--- a/onionshare_gui/mode/history.py
+++ b/onionshare_gui/mode/history.py
@@ -539,17 +539,17 @@ class History(QtWidgets.QWidget):
# Header
self.header_label = QtWidgets.QLabel(header_text)
self.header_label.setStyleSheet(self.common.css['downloads_uploads_label'])
- clear_button = QtWidgets.QPushButton(strings._('gui_all_modes_clear_history'))
- clear_button.setStyleSheet(self.common.css['downloads_uploads_clear'])
- clear_button.setFlat(True)
- clear_button.clicked.connect(self.reset)
+ self.clear_button = QtWidgets.QPushButton(strings._('gui_all_modes_clear_history'))
+ self.clear_button.setStyleSheet(self.common.css['downloads_uploads_clear'])
+ self.clear_button.setFlat(True)
+ self.clear_button.clicked.connect(self.reset)
header_layout = QtWidgets.QHBoxLayout()
header_layout.addWidget(self.header_label)
header_layout.addStretch()
header_layout.addWidget(self.in_progress_label)
header_layout.addWidget(self.completed_label)
header_layout.addWidget(self.requests_label)
- header_layout.addWidget(clear_button)
+ header_layout.addWidget(self.clear_button)
# When there are no items
self.empty_image = QtWidgets.QLabel()