Fix call to Alert() when an autostop timer has run out before starting the share

This commit is contained in:
Miguel Jacq 2018-10-17 10:47:55 +11:00
parent 48654895ea
commit 386a8c5a2d
No known key found for this signature in database
GPG Key ID: EEA4341C6D97A0B6

View File

@ -269,7 +269,7 @@ class ServerStatus(QtWidgets.QWidget):
self.timeout = self.shutdown_timeout.dateTime().toPyDateTime().replace(second=0, microsecond=0)
# If the timeout has actually passed already before the user hit Start, refuse to start the server.
if QtCore.QDateTime.currentDateTime().toPyDateTime() > self.timeout:
Alert(self.common, strings._('gui_server_timeout_expired', QtWidgets.QMessageBox.Warning))
Alert(self.common, strings._('gui_server_timeout_expired'), QtWidgets.QMessageBox.Warning)
else:
self.start_server()
else: