diff --git a/src/ui/qml/box/TextArea2SplitBox.qml b/src/ui/qml/box/TextArea2SplitBox.qml index 5fc91a5a..b388b495 100644 --- a/src/ui/qml/box/TextArea2SplitBox.qml +++ b/src/ui/qml/box/TextArea2SplitBox.qml @@ -93,12 +93,12 @@ T.SplitView { Connections { target: fortManager - onAfterSaveWindowState: { + function onAfterSaveWindowState() { if (splitOnEdited) { fortSettings[settingsPropName] = splitOn; } } - onAfterRestoreWindowState: { + function onAfterRestoreWindowState() { splitOn = fortSettings[settingsPropName] || 0.5; } } diff --git a/src/ui/qml/pages/BasePage.qml b/src/ui/qml/pages/BasePage.qml index 4bf9af88..cc6faf38 100644 --- a/src/ui/qml/pages/BasePage.qml +++ b/src/ui/qml/pages/BasePage.qml @@ -17,8 +17,14 @@ Pane { Connections { target: mainPage - onEditResetted: page.onEditResetted() - onAboutToSave: page.onAboutToSave() - onSaved: page.onSaved() + function onEditResetted() { + page.onEditResetted(); + } + function onAboutToSave() { + page.onAboutToSave(); + } + function onSaved() { + page.onSaved(); + } } } diff --git a/src/ui/qml/pages/schedule/TaskRow.qml b/src/ui/qml/pages/schedule/TaskRow.qml index 4a7ce9c2..8f0222ce 100644 --- a/src/ui/qml/pages/schedule/TaskRow.qml +++ b/src/ui/qml/pages/schedule/TaskRow.qml @@ -19,7 +19,9 @@ Row { Connections { target: schedulePage - onSaveTaskInfo: saveTaskInfo() + function onSaveTaskInfo() { + saveTaskInfo(); + } } CheckBox {