[kile] fix kile process remaining in memory after closing (kde#299569)

Kevin Kofler kkofler at fedoraproject.org
Tue May 8 06:40:22 UTC 2012


commit 4729749c264cb8a6c17467900a0b2469beedfe6b
Author: Kevin Kofler <Kevin at tigcc.ticalc.org>
Date:   Tue May 8 08:40:09 2012 +0200

    fix kile process remaining in memory after closing (kde#299569)
    
    * Tue May 08 2012 Kevin Kofler <Kevin at tigcc.ticalc.org> - 2.1.2-2
    - fix kile process remaining in memory after closing (kde#299569)

 kile-2.1.2-kde#299569.patch |   17 +++++++++++++++++
 kile.spec                   |   10 +++++++++-
 2 files changed, 26 insertions(+), 1 deletions(-)
---
diff --git a/kile-2.1.2-kde#299569.patch b/kile-2.1.2-kde#299569.patch
new file mode 100644
index 0000000..fb22c72
--- /dev/null
+++ b/kile-2.1.2-kde#299569.patch
@@ -0,0 +1,17 @@
+diff --git a/src/kile.cpp b/src/kile.cpp
+index 7cd50c5..ee7d420 100644
+--- a/src/kile.cpp
++++ b/src/kile.cpp
+@@ -115,9 +115,9 @@ Kile::Kile(bool allowRestore, QWidget *parent, const char *name)
+ 	dbus.registerObject("/main", this);
+ 	dbus.registerService("net.sourceforge.kile"); // register under a constant names
+ 
+-	// BUG 220343: Under some circumstances (Qt 4.5.3 or KDE 4.3 issues (?)) Kile doesn't terminate when the
+-	//             main window is closed. So, we force this here. Everything seems to work fine with Qt 4.6.
+-// 	connect(m_mainWindow, SIGNAL(destroyed(QObject*)), kapp, SLOT(quit()));
++	// BUG 220343: Under some circumstances (Qt or KDE issues (?)) Kile doesn't terminate when the
++	//             main window is closed. So, we force this here. This still seems to happen with Qt 4.8.1 and KDE 4.8.2.
++	connect(m_mainWindow, SIGNAL(destroyed(QObject*)), kapp, SLOT(quit()));
+ 
+ 	QSplashScreen splashScreen(QPixmap(KGlobal::dirs()->findResource("appdata", "pics/kile_splash.png")), Qt::WindowStaysOnTopHint);
+ 	if(KileConfig::showSplashScreen()) {
diff --git a/kile.spec b/kile.spec
index 88a45ba..e063d28 100644
--- a/kile.spec
+++ b/kile.spec
@@ -1,13 +1,17 @@
 Name:	 kile
 Summary: (La)TeX source editor and TeX shell
 Version: 2.1.2
-Release: 1%{?dist}
+Release: 2%{?dist}
 
 License: GPLv2+
 Group: 	 Applications/Publishing
 URL:	 http://kile.sourceforge.net/
 Source0: http://downloads.sourceforge.net/sourceforge/kile/kile-%{version}%{?pre}.tar.bz2
 
+# fix kile process remaining in memory after closing (kde#299569)
+# patch attached by upstream (Michel Ludwig) to the bug report
+Patch0: kile-2.1.2-kde#299569.patch
+
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) 
 
 BuildRequires: desktop-file-utils
@@ -53,6 +57,7 @@ Kile is a user friendly (La)TeX editor.  The main features are:
 
 %prep
 %setup -q -n %{name}-%{version}%{?pre}
+%patch0 -p1 -b .kde#299569
 %if 0%{?fedora} < 16 && 0%{?rhel} < 7
 # remove "incomplete translation" notice, entity not available in old kdelibs
 sed -i -e 's/&ged\.vertaald\;//g' translations/nl/doc/index.docbook
@@ -120,6 +125,9 @@ rm -rf %{buildroot}
 
 
 %changelog
+* Tue May 08 2012 Kevin Kofler <Kevin at tigcc.ticalc.org> - 2.1.2-2
+- fix kile process remaining in memory after closing (kde#299569)
+
 * Sun Apr 29 2012 Kevin Kofler <Kevin at tigcc.ticalc.org> - 2.1.2-1
 - update to 2.1.2 (bugfix release, #816521)
 


More information about the scm-commits mailing list