src: fixed crashes on parsing Coati

* also fixed log path getting messed up by indexing a project using a CDB
This commit is contained in:
malte_langkabel
2016-11-01 15:23:21 +01:00
parent 9e4a02a33a
commit f80a371d44
5 changed files with 120 additions and 105 deletions
@@ -2,6 +2,7 @@
#define INCLUDES_WINDOWS_H
#include <string>
#include <QDir>
#include "vld.h"
@@ -19,6 +20,10 @@ void setupApp(int argc, char *argv[])
std::string path = std::getenv("APPDATA");
path += "/../local/Coati Software/Coati/";
UserPaths::setUserDataPath(path);
#else
std::string path = QDir::currentPath().toStdString();
path += "/user/";
UserPaths::setUserDataPath(path);
#endif
}