mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
(#539) Check for NULL pointer when deciding what kind of range filter collection to use
As the management of override range filter collection is handled independenly from scheduleRedraw, we must check for a valid pointer when trying to access the override range filter
This commit is contained in:
@@ -266,14 +266,7 @@ void RiuViewerCommands::displayContextMenu(QMouseEvent* event)
|
||||
|
||||
if (menu.actions().size() > 0)
|
||||
{
|
||||
// event->accept();
|
||||
QAction* act = menu.exec(event->globalPos());
|
||||
/*
|
||||
if (act)
|
||||
{
|
||||
cvf::Trace::show("Jadda");
|
||||
}
|
||||
*/
|
||||
menu.exec(event->globalPos());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user