From 6cc8955bce3483fc84ae2d0ef440bc6be2c4103e Mon Sep 17 00:00:00 2001 From: Tobias Fella Date: Wed, 19 Oct 2022 00:10:17 +0200 Subject: [PATCH] Fix changing avatar image BUG: 460679 --- imports/NeoChat/Settings/AccountEditorPage.qml | 7 +++++++ imports/NeoChat/Settings/AccountsPage.qml | 8 -------- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/imports/NeoChat/Settings/AccountEditorPage.qml b/imports/NeoChat/Settings/AccountEditorPage.qml index 564a9f953..d8317502e 100644 --- a/imports/NeoChat/Settings/AccountEditorPage.qml +++ b/imports/NeoChat/Settings/AccountEditorPage.qml @@ -127,4 +127,11 @@ Kirigami.ScrollablePage { onClicked: root.closeDialog(); } } + Component { + id: openFileDialog + + OpenFileDialog { + folder: StandardPaths.writableLocation(StandardPaths.PicturesLocation) + } + } } diff --git a/imports/NeoChat/Settings/AccountsPage.qml b/imports/NeoChat/Settings/AccountsPage.qml index 6526e98e6..98285ac2c 100644 --- a/imports/NeoChat/Settings/AccountsPage.qml +++ b/imports/NeoChat/Settings/AccountsPage.qml @@ -102,12 +102,4 @@ Kirigami.ScrollablePage { } } } - - property Component openFileDialog: Component { - id: openFileDialog - - OpenFileDialog { - folder: StandardPaths.writableLocation(StandardPaths.PicturesLocation) - } - } }