[rkward/frameworks] rkward/plugin: Fix merge

Thomas Friedrichsmeier thomas.friedrichsmeier at ruhr-uni-bochum.de
Mon Jul 4 20:10:37 UTC 2016


Git commit 16e29b7832521d8a169aabbea0b7df2303bac573 by Thomas Friedrichsmeier.
Committed on 04/07/2016 at 20:10.
Pushed by tfry into branch 'frameworks'.

Fix merge

M  +2    -0    rkward/plugin/rkstandardcomponent.cpp

http://commits.kde.org/rkward/16e29b7832521d8a169aabbea0b7df2303bac573

diff --git a/rkward/plugin/rkstandardcomponent.cpp b/rkward/plugin/rkstandardcomponent.cpp
index 306a806..61a71bf 100644
--- a/rkward/plugin/rkstandardcomponent.cpp
+++ b/rkward/plugin/rkstandardcomponent.cpp
@@ -654,6 +654,7 @@ void RKComponentBuilder::buildElement (const QDomElement &element, XMLHelper &xm
 		} else if (e.tagName () == QLatin1String ("text")) {
 			widget = new RKText (e, component (), parent_widget);
 		} else if (e.tagName () == QLatin1String ("preview")) {
+			QWidget *pwidget = parent_widget;
 			if (!parent->isWizardish ()) {
 				RKStandardComponent *uicomp = parent->topmostStandardComponent ();
 				if (uicomp) {
@@ -663,6 +664,7 @@ void RKComponentBuilder::buildElement (const QDomElement &element, XMLHelper &xm
 			widget = new RKPreviewBox (e, component (), parent_widget);
 			parent_widget->layout ()->addWidget (widget);
 			parent_widget = pwidget;
+                        add_to_layout = false;
 		} else if (e.tagName () == QLatin1String ("saveobject")) {
 			widget = new RKPluginSaveObject (e, component (), parent_widget);
 		} else if (e.tagName () == QLatin1String ("embed")) {



More information about the rkward-tracker mailing list