diff --git a/entity/entity_types.hpp b/entity/entity_types.hpp index 737f67b..2f6e992 100644 --- a/entity/entity_types.hpp +++ b/entity/entity_types.hpp @@ -27,6 +27,7 @@ #include #include #include +#include namespace entity { class BasicEntity; diff --git a/project/project.cpp b/project/project.cpp index 3eef5d7..b28fa33 100644 --- a/project/project.cpp +++ b/project/project.cpp @@ -114,6 +114,9 @@ namespace project { if (!utility::readFromFile(*this, path)) m_Errors << tr("Cannot read project file."); + if (m_Path != path) + m_Path = QFileInfo(path).absolutePath(); + m_Database->setPath(m_Path); m_Database->setName(databaseFileName()); m_Database->load(m_Errors);