fixed subview-closing related crash (Fixes #2564)

c++11
Marc Zinnschlag 10 years ago
parent 1b41f6c4c5
commit 93c3bb3716

@ -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);
}

Loading…
Cancel
Save