mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-26 07:00:17 -05:00
#14302 Fix crash deleting all linked views with active cell filters
This commit is contained in:
1 parent
57e01e1be4
commit
81f4628fa6
1 file changed
+7
-1
@@ -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