From 5058d8914a95794312e4577bdf3a226525dfafc3 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Sat, 16 Nov 2013 22:24:10 -0200 Subject: Fix a crash with trying to show the tooltip on the profile. Fixed a crash with trying to show the tooltip on the profile, with an empty profile. Since the widgets are not created yet, we got a crash trying to access the toolBarProxy. Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/profilegraphics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qt-ui/profilegraphics.cpp b/qt-ui/profilegraphics.cpp index 9e3db2d85..436d3af15 100644 --- a/qt-ui/profilegraphics.cpp +++ b/qt-ui/profilegraphics.cpp @@ -139,7 +139,7 @@ bool ProfileGraphicsView::eventFilter(QObject* obj, QEvent* event) // This will "Eat" the default tooltip behavior if it is not on the toolBar. if (event->type() == QEvent::GraphicsSceneHelp) { - if(!toolBarProxy->geometry().contains(mapFromGlobal(QCursor::pos()))){ + if(toolBarProxy && !toolBarProxy->geometry().contains(mapFromGlobal(QCursor::pos()))){ event->ignore(); return true; } -- cgit v1.2.3-70-g09d2