forked from teamnwah/openmw-tes3coop
some cleanup
This commit is contained in:
parent
170451cb79
commit
10fad47a81
2 changed files with 1 additions and 8 deletions
|
@ -238,9 +238,7 @@ CSMDoc::Document::Document (const std::vector<boost::filesystem::path>& files, b
|
||||||
}
|
}
|
||||||
|
|
||||||
CSMDoc::Document::~Document()
|
CSMDoc::Document::~Document()
|
||||||
{
|
{}
|
||||||
qDebug() << "document destroyed";
|
|
||||||
}
|
|
||||||
|
|
||||||
QUndoStack& CSMDoc::Document::getUndoStack()
|
QUndoStack& CSMDoc::Document::getUndoStack()
|
||||||
{
|
{
|
||||||
|
|
|
@ -103,11 +103,6 @@ bool CSVDoc::ViewManager::closeRequest (View *view)
|
||||||
{
|
{
|
||||||
bool last = countViews (view->getDocument())<=1;
|
bool last = countViews (view->getDocument())<=1;
|
||||||
|
|
||||||
/// \todo check if save is in progress -> warn user about possible data loss
|
|
||||||
/// \todo check if document has not been saved -> return false and start close dialogue
|
|
||||||
|
|
||||||
CSMDoc::Document *document = view->getDocument();
|
|
||||||
|
|
||||||
if (last)
|
if (last)
|
||||||
continueWithClose = notifySaveOnClose (view);
|
continueWithClose = notifySaveOnClose (view);
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue