1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-02-10 09:57:35 +03:00

fix entry index for plasma taskmanagers

--in plasma taskmanagers the index passed starts
from 0 and for latte taskmanager from 1.
This commit is contained in:
Michail Vourlakos 2018-02-25 20:24:59 +02:00
parent 9f03e10b3d
commit 052a8519ce

View File

@ -323,7 +323,7 @@ bool GlobalShortcuts::activatePlasmaTaskManagerEntryAtContainment(const Plasma::
QMetaMethod method = metaObject->method(methodIndex);
if (method.invoke(item, Q_ARG(QVariant, index))) {
if (method.invoke(item, Q_ARG(QVariant, index - 1))) {
if (methodIndex2 != -1) {
m_methodShowNumbers.invoke(item, Q_ARG(QVariant, true));
}