Commit 83cb47c3 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇
Browse files

[Mouse Cursor 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.
parent 0af930b5
......@@ -135,10 +135,10 @@ KCM.GridViewKCM {
id: fileDialogLoader
active: false
sourceComponent: QtDialogs.FileDialog {
visible: true
title: i18n("Open Theme")
folder: shortcuts.home
nameFilters: [ i18n("Cursor Theme Files (*.tar.gz *.tar.bz2)") ]
Component.onCompleted: open()
onAccepted: {
kcm.installThemeFromFile(fileUrls[0])
fileDialogLoader.active = false
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment