Commit 9e38435b authored by Ömer Fadıl Usta's avatar Ömer Fadıl Usta 😊 Committed by Nate Graham
Browse files

Check if winIdList exist on item

On switching between visualdesktops i have observed some items wont have winIdList so it makes it trying to reach  .length over undeclerad/null 
parent 98611a65
......@@ -462,7 +462,8 @@ MouseArea {
onItemAdded: taskList.layout()
onItemRemoved: {
if (tasks.containsMouse && index != taskRepeater.count &&
item.winIdList.length > 0 && taskClosedWithMouseMiddleButton.indexOf(item.winIdList[0]) > -1) {
item.winIdList && item.winIdList.length > 0 &&
taskClosedWithMouseMiddleButton.indexOf(item.winIdList[0]) > -1) {
needLayoutRefresh = true;
} else {
taskList.layout();
......
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