1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-01-11 13:18:13 +03:00

fix #323,TaskManagerBackend groupDialog

--TaskManagerBackend requires a groupDialog
setting otherwise it crashes. This patch
sets one just in order not to crash
TaskManagerBackend
This commit is contained in:
Michail Vourlakos 2017-03-24 16:23:53 +02:00
parent 083754e9e6
commit efac3453a7
2 changed files with 15 additions and 3 deletions

View File

@ -446,15 +446,29 @@ Item {
}
}
//! TaskManagerBackend required a groupDialog setting otherwise it crashes. This patch
//! sets one just in order not to crash TaskManagerBackend
PlasmaCore.Dialog {
//ghost group Dialog to not crash TaskManagerBackend
id: groupDialog
visible: false
type: PlasmaCore.Dialog.PopupMenu
flags: Qt.WindowStaysOnTopHint
hideOnWindowDeactivate: true
location: plasmoid.location
}
TaskManagerApplet.Backend {
id: backend
taskManagerItem: root
toolTipItem: toolTipDelegate
groupDialog: groupDialog
//! there is a conflict between preview windows and highlight effect, it creates
//! a crash when both are activated during hovering. So we enable in each case
//! only one of both
highlightWindows: root.highlightWindows && !root.showPreviews
highlightWindows: root.highlightWindows
onAddLauncher: {
tasksModel.requestAddLauncher(url);

View File

@ -108,7 +108,6 @@ PlasmaComponents.Page {
Layout.leftMargin: units.smallSpacing * 2
text: i18n("Preview windows on hovering")
checked: plasmoid.configuration.showToolTips
enabled: !highlightWindowsChk.checked
onClicked: {
plasmoid.configuration.showToolTips = checked
@ -120,7 +119,6 @@ PlasmaComponents.Page {
Layout.leftMargin: units.smallSpacing * 2
text: i18n("Highlight windows on hovering")
checked: plasmoid.configuration.highlightWindows
enabled: !showPreviewsChk.checked
onClicked: {
plasmoid.configuration.highlightWindows = checked