diff --git a/syncplay/ui/gui.py b/syncplay/ui/gui.py index ca0f5d4..f6d41e3 100755 --- a/syncplay/ui/gui.py +++ b/syncplay/ui/gui.py @@ -1355,9 +1355,10 @@ class MainWindow(QtWidgets.QMainWindow): @needsClient def setOffset(self): + oldoffset = str(self._syncplayClient.getUserOffset()) newoffset, ok = QtWidgets.QInputDialog.getText( self, getMessage("setoffset-msgbox-label"), - getMessage("offsetinfo-msgbox-label"), QtWidgets.QLineEdit.Normal, "") + getMessage("offsetinfo-msgbox-label"), QtWidgets.QLineEdit.Normal, oldoffset) if ok and newoffset != '': o = re.match(constants.UI_OFFSET_REGEX, "o " + newoffset) if o: