mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-09-09 12:25:17 -04:00
some cleanup
This commit is contained in:
parent
170451cb79
commit
10fad47a81
@ -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…
x
Reference in New Issue
Block a user