mirror of
https://github.com/OPM/ResInsight.git
synced 2026-08-26 21:27:15 -05:00
#14302 Fix crash deleting all linked views with active cell filters
This commit is contained in:
@@ -1119,7 +1119,13 @@ bool RimViewController::askUserToRestoreOriginalCellFilterCollection( const QStr
|
||||
{
|
||||
RimGridView* activeView = RiaApplication::instance()->activeGridView();
|
||||
|
||||
QMessageBox msgBox( activeView->viewer()->layoutWidget() );
|
||||
QWidget* parentWidget = nullptr;
|
||||
if ( activeView && activeView->viewer() )
|
||||
{
|
||||
parentWidget = activeView->viewer()->layoutWidget();
|
||||
}
|
||||
|
||||
QMessageBox msgBox( parentWidget );
|
||||
msgBox.setIcon( QMessageBox::Question );
|
||||
|
||||
QString questionText;
|
||||
|
||||
Reference in New Issue
Block a user