Skip to content

Commit

Permalink
fixed unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vt4a2h committed Jul 16, 2015
1 parent 06e47e4 commit 045cbc2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions entity/entity_types.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include <QHash>
#include <QSet>
#include <QStringList>
#include <QMetaType>

namespace entity {
class BasicEntity;
Expand Down
3 changes: 3 additions & 0 deletions project/project.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 045cbc2

Please sign in to comment.