summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets/qeffects.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/qeffects.cpp')
-rw-r--r--src/gui/widgets/qeffects.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/widgets/qeffects.cpp b/src/gui/widgets/qeffects.cpp
index d6d0a16..f3b1b76 100644
--- a/src/gui/widgets/qeffects.cpp
+++ b/src/gui/widgets/qeffects.cpp
@@ -128,7 +128,8 @@ QAlphaWidget::~QAlphaWidget()
{
#if defined(Q_WS_WIN) && !defined(Q_WS_WINCE)
// Restore user-defined opacity value
- widget->setWindowOpacity(windowOpacity);
+ if (widget)
+ widget->setWindowOpacity(windowOpacity);
#endif
}