ensure the shutdown timeout can't go backwards in time

This commit is contained in:
Miguel Jacq 2017-11-09 11:34:59 +11:00
parent 481f33c822
commit 9657df282e
No known key found for this signature in database
GPG Key ID: EEA4341C6D97A0B6

View File

@ -52,6 +52,7 @@ class ServerStatus(QtWidgets.QVBoxLayout):
self.server_shutdown_timeout_label = QtWidgets.QLabel(strings._('gui_settings_shutdown_timeout', True))
self.server_shutdown_timeout = QtWidgets.QDateTimeEdit()
self.server_shutdown_timeout.setDateTime(QtCore.QDateTime.currentDateTime())
self.server_shutdown_timeout.setMinimumDateTime(QtCore.QDateTime.currentDateTime())
self.server_shutdown_timeout.setCurrentSectionIndex(4)
self.server_shutdown_timeout_label.hide()
self.server_shutdown_timeout.hide()