From e0c153f6fa7569e2c3cf51e0c6fc83b0a7860754 Mon Sep 17 00:00:00 2001 From: Rex Dieter Date: Fri, 1 Aug 2008 14:05:20 +0000 Subject: [PATCH] respin kde#167826 patch --- kdelibs-4.1.0-kde#167826.patch | 33 ++++++++++++++++++++++++++------- kdelibs.spec | 2 +- 2 files changed, 27 insertions(+), 8 deletions(-) diff --git a/kdelibs-4.1.0-kde#167826.patch b/kdelibs-4.1.0-kde#167826.patch index 83fcd44..d0f31aa 100644 --- a/kdelibs-4.1.0-kde#167826.patch +++ b/kdelibs-4.1.0-kde#167826.patch @@ -1,6 +1,7 @@ ---- branches/KDE/4.1/kdelibs/kdecore/kernel/kglobal.cpp 2008/08/01 00:12:03 840376 -+++ branches/KDE/4.1/kdelibs/kdecore/kernel/kglobal.cpp 2008/08/01 00:14:54 840377 -@@ -251,11 +251,14 @@ +diff -up kdelibs-4.1.0/kdecore/kernel/kglobal.cpp.kde#167826 kdelibs-4.1.0/kdecore/kernel/kglobal.cpp +--- kdelibs-4.1.0/kdecore/kernel/kglobal.cpp.kde#167826 2008-05-21 06:08:57.000000000 -0500 ++++ kdelibs-4.1.0/kdecore/kernel/kglobal.cpp 2008-08-01 08:15:52.000000000 -0500 +@@ -251,11 +251,14 @@ QString KGlobal::caption() /** * This counter indicates when to quit the application. @@ -19,7 +20,7 @@ void KGlobal::ref() { -@@ -267,9 +270,14 @@ +@@ -267,9 +270,14 @@ void KGlobal::deref() { --s_refCount; //kDebug() << "KGlobal::deref() : refCount = " << s_refCount; @@ -35,9 +36,27 @@ +} + #undef PRIVATE_DATA ---- branches/KDE/4.1/kdelibs/kdeui/widgets/kmainwindow.cpp 2008/08/01 00:12:03 840376 -+++ branches/KDE/4.1/kdelibs/kdeui/widgets/kmainwindow.cpp 2008/08/01 00:14:54 840377 -@@ -226,6 +226,11 @@ +diff -up kdelibs-4.1.0/kdecore/kernel/kglobal.h.kde#167826 kdelibs-4.1.0/kdecore/kernel/kglobal.h +--- kdelibs-4.1.0/kdecore/kernel/kglobal.h.kde#167826 2008-05-21 06:08:57.000000000 -0500 ++++ kdelibs-4.1.0/kdecore/kernel/kglobal.h 2008-08-01 08:21:49.000000000 -0500 +@@ -421,6 +421,13 @@ namespace KGlobal + KDECORE_EXPORT void deref(); + + /** ++ * If refcounting reaches 0 (or less), and @p allowQuit is true, the instance of the application ++ * will automatically be exited. Otherwise, the application will not exit automatically. ++ * @since 4.2 ++ */ ++ KDECORE_EXPORT void setAllowQuit(bool allowQuit); ++ ++ /** + * The component currently active (useful in a multi-component + * application, such as a KParts application). + * Don't use this - it's mainly for KAboutDialog and KBugReport. +diff -up kdelibs-4.1.0/kdeui/widgets/kmainwindow.cpp.kde#167826 kdelibs-4.1.0/kdeui/widgets/kmainwindow.cpp +--- kdelibs-4.1.0/kdeui/widgets/kmainwindow.cpp.kde#167826 2008-07-23 03:26:33.000000000 -0500 ++++ kdelibs-4.1.0/kdeui/widgets/kmainwindow.cpp 2008-08-01 08:15:52.000000000 -0500 +@@ -226,6 +226,11 @@ void KMainWindowPrivate::init(KMainWindo { KGlobal::ref(); diff --git a/kdelibs.spec b/kdelibs.spec index e7a995e..4d06824 100644 --- a/kdelibs.spec +++ b/kdelibs.spec @@ -210,7 +210,7 @@ sed -i -e "s|@@VERSION_RELEASE@@|%{version}-%{release}|" kio/kio/kprotocolmanage %patch19 -p0 -b .kinit-regression ## upstream patches -%patch100 -p4 -b .kde#167826 +%patch100 -p1 -b .kde#167826 %build