mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-31 05:45:34 +00:00
fixed subview-closing related crash (Fixes #2564)
This commit is contained in:
parent
1b41f6c4c5
commit
93c3bb3716
1 changed files with 3 additions and 0 deletions
|
@ -811,7 +811,10 @@ void CSVDoc::View::closeRequest (SubView *subView)
|
||||||
|
|
||||||
if (mSubViews.size()>1 || mViewTotal<=1 ||
|
if (mSubViews.size()>1 || mViewTotal<=1 ||
|
||||||
userSettings.setting ("window/hide-subview", QString ("false"))!="true")
|
userSettings.setting ("window/hide-subview", QString ("false"))!="true")
|
||||||
|
{
|
||||||
subView->deleteLater();
|
subView->deleteLater();
|
||||||
|
mSubViews.removeOne (subView);
|
||||||
|
}
|
||||||
else if (mViewManager.closeRequest (this))
|
else if (mViewManager.closeRequest (this))
|
||||||
mViewManager.removeDocAndView (mDocument);
|
mViewManager.removeDocAndView (mDocument);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue