From 45a582d36b111b02ac2a6af5e79466389a1fad10 Mon Sep 17 00:00:00 2001 From: Michail Vourlakos Date: Sun, 25 Nov 2018 00:52:59 +0200 Subject: [PATCH] restore mouse wheel actions for tasks BUG: 401380 FIXED-IN: 0.8.4 --- .../package/contents/ui/task/TaskWindows.qml | 28 ++++--------------- 1 file changed, 6 insertions(+), 22 deletions(-) diff --git a/plasmoid/package/contents/ui/task/TaskWindows.qml b/plasmoid/package/contents/ui/task/TaskWindows.qml index 060dc192c..f749f786b 100644 --- a/plasmoid/package/contents/ui/task/TaskWindows.qml +++ b/plasmoid/package/contents/ui/task/TaskWindows.qml @@ -50,33 +50,17 @@ Item{ Repeater{ model:DelegateModel { id: windowsLocalModel - model: tasksModel //icList.model - /* rootIndex: { - if (root.inDraggingPhase) { - return tasksModel.makeModelIndex(lastValidIndex); - } + model: tasksModel - return tasksModel.makeModelIndex(currentIndex >=0 ? currentIndex : index) - }*/ + //! This is a little suspicious code for crashes + //! during dragging or when the dragging ends. It needs + //! investigation to be confirmed or not + rootIndex: tasksModel.makeModelIndex(currentIndex >=0 ? currentIndex : index) property int currentIndex: -1 - //! Trying to avoid a crash during dragging tasks/launchers - Binding{ - target: windowsLocalModel - property: "rootIndex" - - value: { - if (root.inDraggingPhase) { - return 0; - } - - return tasksModel.makeModelIndex(currentIndex >=0 ? currentIndex : index) - } - } - delegate: Item{ - readonly property string title: display + readonly property string title: display !== undefined ? display : "" readonly property bool isMinimized: IsMinimized === true ? true : false onIsMinimizedChanged: windowsContainer.initializeStates();