From 1d5d4406ef3e6e52d6410bcd2d938f0ff91ee405 Mon Sep 17 00:00:00 2001 From: Michail Vourlakos Date: Thu, 4 Jan 2018 18:25:11 +0200 Subject: [PATCH] slide-out docks in manual layout change --- app/layoutmanager.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/layoutmanager.cpp b/app/layoutmanager.cpp index 235ccc7cb..cf0370faa 100644 --- a/app/layoutmanager.cpp +++ b/app/layoutmanager.cpp @@ -302,12 +302,14 @@ bool LayoutManager::switchToLayout(QString layoutName) } if (!lPath.isEmpty()) { + emit currentLayoutIsChanging(); + //! this code must be called asynchronously because it is called //! also from qml (Tasks plasmoid). This change fixes a very important //! crash when switching sessions through the Tasks plasmoid Context menu //! Latte was unstable and was crashing very often during changing //! sessions. - QTimer::singleShot(0, [this, layoutName, lPath]() { + QTimer::singleShot(250, [this, layoutName, lPath]() { qDebug() << layoutName << " - " << lPath; m_corona->loadLatteLayout(lPath);