|
|
|
@ -323,7 +323,7 @@ void CSVDoc::View::updateSubViewIndicies(SubView *view)
|
|
|
|
|
if(view && mSubViews.contains(view))
|
|
|
|
|
mSubViews.removeOne(view);
|
|
|
|
|
|
|
|
|
|
if(mSubViews.size() == 1)
|
|
|
|
|
if (mSubViews.size() == 1)
|
|
|
|
|
{
|
|
|
|
|
if(!mSubViews.at(0)->isFloating())
|
|
|
|
|
{
|
|
|
|
@ -518,6 +518,8 @@ void CSVDoc::View::addSubView (const CSMWorld::UniversalId& id, const std::strin
|
|
|
|
|
view,
|
|
|
|
|
SLOT (updateUserSetting (const QString &, const QStringList &)));
|
|
|
|
|
|
|
|
|
|
connect (view, SIGNAL (closeRequest (SubView *)), this, SLOT (closeRequest (SubView *)));
|
|
|
|
|
|
|
|
|
|
view->show();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -761,3 +763,11 @@ void CSVDoc::View::stop()
|
|
|
|
|
{
|
|
|
|
|
mDocument->stopRunning();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void CSVDoc::View::closeRequest (SubView *subView)
|
|
|
|
|
{
|
|
|
|
|
if (mSubViews.size()>1 || mViewTotal<=1)
|
|
|
|
|
subView->deleteLater();
|
|
|
|
|
else if (mViewManager.closeRequest (this))
|
|
|
|
|
mViewManager.removeDocAndView (mDocument);
|
|
|
|
|
}
|