This commit is contained in:
parent
e647eaa3f7
commit
4d60e9e7aa
@ -35,7 +35,7 @@ diff -Naur libdbusmenu-qt-0.9.2+14.04.20131209.orig/src/dbusmenuexporter.cpp lib
|
|||||||
QVariantMap map = propertiesForAction(action);
|
QVariantMap map = propertiesForAction(action);
|
||||||
diff -Naur libdbusmenu-qt-0.9.2+14.04.20131209.orig/src/dbusmenuimporter.cpp libdbusmenu-qt-0.9.2+14.04.20131209/src/dbusmenuimporter.cpp
|
diff -Naur libdbusmenu-qt-0.9.2+14.04.20131209.orig/src/dbusmenuimporter.cpp libdbusmenu-qt-0.9.2+14.04.20131209/src/dbusmenuimporter.cpp
|
||||||
--- libdbusmenu-qt-0.9.2+14.04.20131209.orig/src/dbusmenuimporter.cpp 2013-12-09 03:29:47.000000000 +0100
|
--- libdbusmenu-qt-0.9.2+14.04.20131209.orig/src/dbusmenuimporter.cpp 2013-12-09 03:29:47.000000000 +0100
|
||||||
+++ libdbusmenu-qt-0.9.2+14.04.20131209/src/dbusmenuimporter.cpp 2013-12-18 22:02:02.663658752 +0100
|
+++ libdbusmenu-qt-0.9.2+14.04.20131209/src/dbusmenuimporter.cpp 2013-12-18 22:06:44.057140849 +0100
|
||||||
@@ -191,7 +191,9 @@
|
@@ -191,7 +191,9 @@
|
||||||
updateActionShortcut(action, value);
|
updateActionShortcut(action, value);
|
||||||
} else if (key == "children-display") {
|
} else if (key == "children-display") {
|
||||||
@ -46,7 +46,17 @@ diff -Naur libdbusmenu-qt-0.9.2+14.04.20131209.orig/src/dbusmenuimporter.cpp lib
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -390,7 +392,9 @@
|
@@ -239,7 +241,9 @@
|
||||||
|
action->setProperty(DBUSMENU_PROPERTY_ICON_DATA_HASH, dataHash);
|
||||||
|
QPixmap pix;
|
||||||
|
if (!pix.loadFromData(data)) {
|
||||||
|
+#ifndef QT_NO_DEBUG
|
||||||
|
DMWARNING << "Failed to decode icon-data property for action" << action->text();
|
||||||
|
+#endif
|
||||||
|
action->setIcon(QIcon());
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
@@ -390,7 +394,9 @@
|
||||||
|
|
||||||
QDBusPendingReply<uint, DBusMenuLayoutItem> reply = *watcher;
|
QDBusPendingReply<uint, DBusMenuLayoutItem> reply = *watcher;
|
||||||
if (!reply.isValid()) {
|
if (!reply.isValid()) {
|
||||||
@ -56,7 +66,7 @@ diff -Naur libdbusmenu-qt-0.9.2+14.04.20131209.orig/src/dbusmenuimporter.cpp lib
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -401,7 +405,9 @@
|
@@ -401,7 +407,9 @@
|
||||||
|
|
||||||
QMenu *menu = d->menuForId(parentId);
|
QMenu *menu = d->menuForId(parentId);
|
||||||
if (!menu) {
|
if (!menu) {
|
||||||
@ -66,7 +76,7 @@ diff -Naur libdbusmenu-qt-0.9.2+14.04.20131209.orig/src/dbusmenuimporter.cpp lib
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -494,7 +500,9 @@
|
@@ -494,7 +502,9 @@
|
||||||
QPointer<QObject> guard(this);
|
QPointer<QObject> guard(this);
|
||||||
|
|
||||||
if (!waitForWatcher(watcher, ABOUT_TO_SHOW_TIMEOUT)) {
|
if (!waitForWatcher(watcher, ABOUT_TO_SHOW_TIMEOUT)) {
|
||||||
@ -76,7 +86,7 @@ diff -Naur libdbusmenu-qt-0.9.2+14.04.20131209.orig/src/dbusmenuimporter.cpp lib
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef BENCHMARK
|
#ifdef BENCHMARK
|
||||||
@@ -522,7 +530,9 @@
|
@@ -522,7 +532,9 @@
|
||||||
|
|
||||||
QDBusPendingReply<bool> reply = *watcher;
|
QDBusPendingReply<bool> reply = *watcher;
|
||||||
if (reply.isError()) {
|
if (reply.isError()) {
|
||||||
@ -86,7 +96,7 @@ diff -Naur libdbusmenu-qt-0.9.2+14.04.20131209.orig/src/dbusmenuimporter.cpp lib
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
bool needRefresh = reply.argumentAt<0>();
|
bool needRefresh = reply.argumentAt<0>();
|
||||||
@@ -534,7 +544,9 @@
|
@@ -534,7 +546,9 @@
|
||||||
d->m_idsRefreshedByAboutToShow << id;
|
d->m_idsRefreshedByAboutToShow << id;
|
||||||
watcher = d->refresh(id);
|
watcher = d->refresh(id);
|
||||||
if (!waitForWatcher(watcher, REFRESH_TIMEOUT)) {
|
if (!waitForWatcher(watcher, REFRESH_TIMEOUT)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user