diff options
author | Marius Bugge Monsen <mmonsen@trolltech.com> | 2009-06-22 12:34:29 (GMT) |
---|---|---|
committer | Marius Bugge Monsen <mmonsen@trolltech.com> | 2009-06-22 12:34:29 (GMT) |
commit | bbc8e0c87e0969478ad958684a4111920ccd6567 (patch) | |
tree | 4dcf938e92c2f34be66b25db4ead69d41cf76b6b /src/gui | |
parent | 120252acef2d81d0046b421ad2cc1455975c0052 (diff) | |
download | Qt-bbc8e0c87e0969478ad958684a4111920ccd6567.zip Qt-bbc8e0c87e0969478ad958684a4111920ccd6567.tar.gz Qt-bbc8e0c87e0969478ad958684a4111920ccd6567.tar.bz2 |
Check for null pointer in QGraphicsProxyWidget::event() in case there is no focusWidget().
Reviewed-by: Thierry
Task-number: 255468
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/graphicsview/qgraphicsproxywidget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/graphicsview/qgraphicsproxywidget.cpp b/src/gui/graphicsview/qgraphicsproxywidget.cpp index 98fe51d..65f315c 100644 --- a/src/gui/graphicsview/qgraphicsproxywidget.cpp +++ b/src/gui/graphicsview/qgraphicsproxywidget.cpp @@ -840,7 +840,7 @@ bool QGraphicsProxyWidget::event(QEvent *event) // ### Qt 4.5: this code must also go into a reimplementation // of inputMethodEvent(). QWidget *focusWidget = d->widget->focusWidget(); - if (focusWidget->testAttribute(Qt::WA_InputMethodEnabled)) + if (focusWidget && focusWidget->testAttribute(Qt::WA_InputMethodEnabled)) QApplication::sendEvent(focusWidget, event); break; } |