[Kde-bindings] branches/KDE/4.0/kdebindings/csharp/qyoto

Arno Rehn kde at arnorehn.de
Sun Mar 2 18:46:00 UTC 2008


SVN commit 781383 by arnorehn:

* Backported bugfixes from kdebindings-smoke2

CCMAIL: kde-bindings at kde.org



 M  +4 -0      ChangeLog  
 M  +6 -0      src/qyoto.cpp  


--- branches/KDE/4.0/kdebindings/csharp/qyoto/ChangeLog #781382:781383
@@ -1,3 +1,7 @@
+2008-02-03  Arno Rehn  <arno at arnorehn.de>
+
+	* Backported bugfixes from kdebindings-smoke2
+
 2007-11-29  Richard Dale  <rdale at foton.es>
 
 	* Fixed the simpletreemodel example so that the Flags() method returns
--- branches/KDE/4.0/kdebindings/csharp/qyoto/src/qyoto.cpp #781382:781383
@@ -983,6 +983,9 @@
     }
 
 	bool callMethod(Smoke::Index method, void *ptr, Smoke::Stack args, bool isAbstract) {
+		// don't call anything if the application has already terminated
+		if (application_terminated) return false;
+
 		void * obj = (*GetInstance)(ptr, false);
 
 		if (obj == 0 && !isAbstract) {
@@ -1052,6 +1055,9 @@
 static bool 
 qyoto_event_notify(void **data)
 {
+	// don't do anything if the application has already terminated
+	if (application_terminated) return false;
+
     QEvent *event = (QEvent *) data[1];
 
 	// If a child has been given a parent then make a global ref to it, to prevent



More information about the Kde-bindings mailing list