use QDateTimeEdit instead of a spinbox for selecting a future date/time to auto-stop share

This commit is contained in:
Miguel Jacq 2017-11-09 11:29:55 +11:00
parent a4b8a71c68
commit 481f33c822
No known key found for this signature in database
GPG key ID: EEA4341C6D97A0B6
4 changed files with 12 additions and 8 deletions

View file

@ -374,7 +374,7 @@ class OnionShareGui(QtWidgets.QMainWindow):
# If the auto-shutdown timer has stopped, stop the server
if self.server_status.status == self.server_status.STATUS_STARTED:
if self.app.shutdown_timer and self.server_status.server_shutdown_timeout.value() > 0:
if self.app.shutdown_timer and self.server_status.timeout > 0:
if not self.app.shutdown_timer.is_alive():
self.server_status.stop_server()
self.status_bar.showMessage(strings._('close_on_timeout',True))