summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qwidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/kernel/qwidget.cpp')
-rw-r--r--src/gui/kernel/qwidget.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/kernel/qwidget.cpp b/src/gui/kernel/qwidget.cpp
index e18b66b..0a7fea3 100644
--- a/src/gui/kernel/qwidget.cpp
+++ b/src/gui/kernel/qwidget.cpp
@@ -11528,7 +11528,8 @@ void QWidget::setSoftKeys(QAction *softKey)
{
Q_D(QWidget);
qDeleteAll(d->softKeys);
- d->softKeys.append(softKey);
+ if (softKey)
+ d->softKeys.append(softKey);
// d->setNativeSoftKeys(softkeys);
}