1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 18:19:55 +00:00

fixed subview-closing related crash (Fixes #2564)

This commit is contained in:
Marc Zinnschlag 2015-05-17 14:27:17 +02:00
parent 1b41f6c4c5
commit 93c3bb3716

View file

@ -811,7 +811,10 @@ void CSVDoc::View::closeRequest (SubView *subView)
if (mSubViews.size()>1 || mViewTotal<=1 ||
userSettings.setting ("window/hide-subview", QString ("false"))!="true")
{
subView->deleteLater();
mSubViews.removeOne (subView);
}
else if (mViewManager.closeRequest (this))
mViewManager.removeDocAndView (mDocument);
}