fix #323,a better fix for hover effect crashes

--this is a better way to not have crashes and at
the same time keep compatibility with both
plasma 5.8 and 5.9
pull/1/head
Michail Vourlakos 8 years ago
parent 91a226ff86
commit 364e3bb9be

@ -446,6 +446,20 @@ 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: groupDialogGhost
visible: false
type: PlasmaCore.Dialog.PopupMenu
flags: Qt.WindowStaysOnTopHint
hideOnWindowDeactivate: true
location: plasmoid.location
}
TaskManagerApplet.Backend {
id: backend
@ -460,8 +474,10 @@ Item {
Component.onCompleted: {
//! In Plasma 5.9 TaskManagerBackend required a groupDialog setting
//! otherwise it crashes.
if (groupDialog) {
groupDialog = undefined;
//! frameworks 5.29.0 provide id 335104
//! work only after Plasma 5.9 and frameworks 5.29
if (Latte.WindowSystem.frameworksVersion >= 335104) {
groupDialog = groupDialogGhost;
}
}
}

Loading…
Cancel
Save