aboutsummaryrefslogtreecommitdiff
path: root/plainqt
diff options
context:
space:
mode:
authorBernd Lamecker <blam@sepp.nbg.basyskom.de>2010-05-21 14:49:56 +0200
committerTomas Junnonen <tomas.junnonen@nokia.com>2010-05-21 18:01:29 +0300
commit8d8c742ea415c68f0b6ab31c169a7efc235ec4cf (patch)
tree941933d30250ea1c6590a25ad33dafbab87c12ef /plainqt
parente5c4300f40fb42814861dc9d3d15b8e932151fd9 (diff)
Fixes: NB#169749, QtMaemo6Style crashes when text edit is focused and VKB is shown
RevBy: Tomas Details: This fix aviods the crash of Widgetsgallery when entering a textfield and VKB is shown, but doesn't solve the original QAbstractScrollArea-problem with the style
Diffstat (limited to 'plainqt')
-rw-r--r--plainqt/style/qtmaemo6style.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plainqt/style/qtmaemo6style.cpp b/plainqt/style/qtmaemo6style.cpp
index 95bb6aa3..f38f8bd2 100644
--- a/plainqt/style/qtmaemo6style.cpp
+++ b/plainqt/style/qtmaemo6style.cpp
@@ -2470,7 +2470,7 @@ void QtMaemo6StylePrivate::ensureWidgetVisible(QWidget* widget, QRect visibleAre
QWidget* parent = widget->parentWidget();
QtMaemo6Window* window = NULL;
//search
- while(!(window = qobject_cast<QtMaemo6Window*>(parent)))
+ while(!(window = qobject_cast<QtMaemo6Window*>(parent)) && parent)
parent = parent->parentWidget();
if(window) {
QAbstractScrollArea* sa = qobject_cast<QAbstractScrollArea*>(window->centralWidget());