summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/widgets/styles/qproxystyle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/styles/qproxystyle.cpp b/src/widgets/styles/qproxystyle.cpp
index 60853880f6..c3fc1d06a4 100644
--- a/src/widgets/styles/qproxystyle.cpp
+++ b/src/widgets/styles/qproxystyle.cpp
@@ -120,9 +120,9 @@ QProxyStyle::QProxyStyle(QStyle *style) :
{
Q_D(QProxyStyle);
if (style) {
+ d->baseStyle = style;
style->setProxy(this);
style->setParent(this); // Take ownership
- d->baseStyle = style;
}
}