mirror of
https://github.com/OPM/ResInsight.git
synced 2026-11-03 04:40:49 -06:00
#14302 Fix crash deleting all linked views with active cell filters
This commit is contained in:
1 parent
8152605f2e
commit
d1712dd97a
1 file changed
+7
-1
@@ -1119,7 +1119,13 @@ bool RimViewController::askUserToRestoreOriginalCellFilterCollection( const QStr
|
|||||||
{
|
{
|
||||||
RimGridView* activeView = RiaApplication::instance()->activeGridView();
|
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 );
|
msgBox.setIcon( QMessageBox::Question );
|
||||||
|
|
||||||
QString questionText;
|
QString questionText;
|
||||||
|
|||||||
Reference in new issue
Block a user