From kde-commits Tue Apr 24 14:32:12 2018 From: Kai Uwe Broulik Date: Tue, 24 Apr 2018 14:32:12 +0000 To: kde-commits Subject: [plasma-desktop/Plasma/5.12] kcms/desktoptheme/package/contents/ui: [Desktop Theme KCM] Workaround b Message-Id: X-MARC-Message: https://marc.info/?l=kde-commits&m=152458034309191 Git commit c5c756623a3495183f5b3390520ee599dd0f43c1 by Kai Uwe Broulik. Committed on 24/04/2018 at 14:31. Pushed by broulik into branch 'Plasma/5.12'. [Desktop Theme KCM] Workaround bug in FileDialog When FileDialog is created with visible set to true it will open the dialog= immediately before its properties are set leading to a dialog with no title and filter. Differential Revision: https://phabricator.kde.org/D12495 M +1 -1 kcms/desktoptheme/package/contents/ui/main.qml https://commits.kde.org/plasma-desktop/c5c756623a3495183f5b3390520ee599dd0f= 43c1 diff --git a/kcms/desktoptheme/package/contents/ui/main.qml b/kcms/desktopt= heme/package/contents/ui/main.qml index 93fdf0bd..a6928a9b 100644 --- a/kcms/desktoptheme/package/contents/ui/main.qml +++ b/kcms/desktoptheme/package/contents/ui/main.qml @@ -225,10 +225,10 @@ Item { id: fileDialogLoader active: false sourceComponent: FileDialog { - visible: true title: i18n("Open Theme") folder: shortcuts.home nameFilters: [ i18n("Theme Files (*.zip *.tar.gz *.tar.bz2)") ] + Component.onCompleted: open() onAccepted: { kcm.installThemeFromFile(fileUrls[0]) fileDialogLoader.active =3D false