[rkward-cvs] SF.net SVN: rkward: [1315] trunk/rkward/rkward/plugin/rkcomponent.cpp

tfry at users.sourceforge.net tfry at users.sourceforge.net
Mon Feb 5 10:24:18 UTC 2007


Revision: 1315
          http://svn.sourceforge.net/rkward/?rev=1315&view=rev
Author:   tfry
Date:     2007-02-05 02:24:18 -0800 (Mon, 05 Feb 2007)

Log Message:
-----------
Make sure, embedded plugins in a separate window still get deleted

Modified Paths:
--------------
    trunk/rkward/rkward/plugin/rkcomponent.cpp

Modified: trunk/rkward/rkward/plugin/rkcomponent.cpp
===================================================================
--- trunk/rkward/rkward/plugin/rkcomponent.cpp	2007-02-05 02:01:30 UTC (rev 1314)
+++ trunk/rkward/rkward/plugin/rkcomponent.cpp	2007-02-05 10:24:18 UTC (rev 1315)
@@ -101,6 +101,8 @@
 	createDefaultProperties ();
 
 	_parent = parent_component;
+	// even if this is component has (parent_widget == 0), the component should be added as a QObject child of the parent.
+	if (_parent && (!parent_widget)) _parent->insertChild (this);
 }
 
 void RKComponent::createDefaultProperties () {


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the rkward-tracker mailing list