summaryrefslogtreecommitdiffstats
path: root/src/widget/wpushbutton.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/widget/wpushbutton.cpp')
-rw-r--r--src/widget/wpushbutton.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widget/wpushbutton.cpp b/src/widget/wpushbutton.cpp
index 6bbc8cba09..8da829fa26 100644
--- a/src/widget/wpushbutton.cpp
+++ b/src/widget/wpushbutton.cpp
@@ -82,7 +82,7 @@ void WPushButton::setup(const QDomNode& node, const SkinContext& context) {
// context.
QScopedPointer<SkinContext> createdStateContext;
if (context.hasVariableUpdates(state)) {
- createdStateContext.reset(new SkinContext(context));
+ createdStateContext.reset(new SkinContext(&context));
createdStateContext->updateVariables(state);
}