mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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 <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
7e9a7b6223
commit
5058d8914a
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue