[rkward-cvs] SF.net SVN: rkward: [2132] branches/KDE4_port/rkward/plugin/rkcomponent.cpp

tfry at users.sourceforge.net tfry at users.sourceforge.net
Thu Oct 25 18:25:14 UTC 2007


Revision: 2132
          http://rkward.svn.sourceforge.net/rkward/?rev=2132&view=rev
Author:   tfry
Date:     2007-10-25 11:25:14 -0700 (Thu, 25 Oct 2007)

Log Message:
-----------
Fix crash on as-button embedded plugins

Modified Paths:
--------------
    branches/KDE4_port/rkward/plugin/rkcomponent.cpp

Modified: branches/KDE4_port/rkward/plugin/rkcomponent.cpp
===================================================================
--- branches/KDE4_port/rkward/plugin/rkcomponent.cpp	2007-10-25 18:01:07 UTC (rev 2131)
+++ branches/KDE4_port/rkward/plugin/rkcomponent.cpp	2007-10-25 18:25:14 UTC (rev 2132)
@@ -104,7 +104,7 @@
 
 	_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);
+	if (_parent && (!parent_widget)) setParent (_parent);
 }
 
 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