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:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user