kbounce: fix build for session-less qtbase
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
From 616528cad6a98b2604eb8365f55538a738e7db2e Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@googlemail.com>
|
||||
Date: Sun, 11 Oct 2015 21:34:06 +0200
|
||||
Subject: [PATCH] fix build with QT_NO_SESSIONMANAGER set
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
Upstream-Status: Pending
|
||||
|
||||
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
|
||||
---
|
||||
main.cpp | 5 ++++-
|
||||
1 file changed, 4 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/main.cpp b/main.cpp
|
||||
index 0a02928..9614c70 100644
|
||||
--- a/main.cpp
|
||||
+++ b/main.cpp
|
||||
@@ -78,9 +78,12 @@ int main(int argc, char **argv)
|
||||
|
||||
KDBusService service;
|
||||
|
||||
+#ifndef QT_NO_SESSIONMANAGER
|
||||
if (app.isSessionRestored())
|
||||
RESTORE(KBounceMainWindow)
|
||||
- else {
|
||||
+ else
|
||||
+#endif
|
||||
+ {
|
||||
KBounceMainWindow *w = new KBounceMainWindow;
|
||||
w->show();
|
||||
}
|
||||
--
|
||||
2.1.0
|
||||
|
||||
@@ -27,6 +27,7 @@ DEPENDS += "\
|
||||
PV = "${KDE_APP_VERSION}"
|
||||
SRC_URI[md5sum] = "c10f40a9a04c1283ce2d9827c529c7c9"
|
||||
SRC_URI[sha256sum] = "640c26efd332f6599d44e5004c37937ca7495269877a0ca325e0cf9b093beb88"
|
||||
SRC_URI += "file://0001-fix-build-with-QT_NO_SESSIONMANAGER-set.patch"
|
||||
|
||||
FILES_${PN} += " \
|
||||
${datadir}/kxmlgui5 \
|
||||
|
||||
Reference in New Issue
Block a user