From 9420db9284f20e28239d1c6e8a4cccf7707c014e Mon Sep 17 00:00:00 2001 From: Markku Luukkainen Date: Sat, 6 Jun 2009 18:50:17 +0200 Subject: Fixed bug that caused the softkeys list not to be cleared after the softkeys in the list were deleted --- src/gui/kernel/qwidget.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gui/kernel/qwidget.cpp b/src/gui/kernel/qwidget.cpp index 0a7fea3..7a8b143 100644 --- a/src/gui/kernel/qwidget.cpp +++ b/src/gui/kernel/qwidget.cpp @@ -11528,6 +11528,7 @@ void QWidget::setSoftKeys(QAction *softKey) { Q_D(QWidget); qDeleteAll(d->softKeys); + d->softKeys.clear(); if (softKey) d->softKeys.append(softKey); // d->setNativeSoftKeys(softkeys); @@ -11537,6 +11538,7 @@ void QWidget::setSoftKeys(const QList &softKeys) { Q_D(QWidget); qDeleteAll(d->softKeys); + d->softKeys.clear(); for(int i = 0; i < softKeys.count(); i++) d->softKeys.append(softKeys.at(i)); -- cgit v0.12