Fix compilation when ENABLE_UI is off

This commit is contained in:
David Capello 2019-06-06 14:58:45 -03:00
parent 7ce45c0017
commit a7a9d05de3

View File

@ -419,8 +419,10 @@ void App::run()
// Destroy all documents from the UIContext. // Destroy all documents from the UIContext.
std::vector<Doc*> docs; std::vector<Doc*> docs;
#ifdef ENABLE_UI
for (Doc* doc : m_modules->m_context.closedDocs()) for (Doc* doc : m_modules->m_context.closedDocs())
docs.push_back(doc); docs.push_back(doc);
#endif
for (Doc* doc : m_modules->m_context.documents()) for (Doc* doc : m_modules->m_context.documents())
docs.push_back(doc); docs.push_back(doc);
for (Doc* doc : docs) { for (Doc* doc : docs) {