diff --git a/pages/settings/SettingsInfo.qml b/pages/settings/SettingsInfo.qml index 625b39ad..93f35b23 100644 --- a/pages/settings/SettingsInfo.qml +++ b/pages/settings/SettingsInfo.qml @@ -191,7 +191,7 @@ Rectangle { inputDialog.onAcceptedCallback = function() { var _restoreHeight; if (inputDialog.inputText) { - _restoreHeight = Utils.parseDateStringOrRestoreHeightAsInteger(inputDialog.inputText); + _restoreHeight = Utils.parseDateStringOrRestoreHeightAsInteger(inputDialog.inputText.trim()); } if (!isNaN(_restoreHeight)) { if(_restoreHeight >= 0) {