build: update botan paths

botan has new paths on linux build, debug - release fix on linux
This commit is contained in:
Andreas Stallinger
2016-03-17 13:58:47 +01:00
parent a78e7b85d1
commit f6de07ecf1
5 changed files with 19 additions and 11 deletions
@@ -2,10 +2,12 @@
#define INCLUDES_DEFAULT_H
#include <QCoreApplication>
#include <QDir>
#include "utility/AppPath.h"
#include "utility/UserPaths.h"
#include "utility/file/FilePath.h"
#include "utility/file/FileSystem.h"
#include "qt/utility/utilityQt.h"
#include "isTrial.h"
void setupPlatform(int argc, char *argv[])
@@ -29,13 +31,15 @@ void setupApp(int argc, char *argv[])
userdir.append("/.config/coati/");
}
UserPaths::setUserDataPath(userdir);
FilePath userDataPath(userdir);
//copy default user folder to .config/coati if it does not exist
if (!userDataPath.exists())
QString userDataPath(userdir.c_str());
QDir dataDir(userdir.c_str());
if (!dataDir.exists())
{
FilePath from(AppPath::getAppPath() + "user");
FileSystem::copy_directory(from, userDataPath);
dataDir.mkpath(userDataPath);
}
utility::copyNewFilesFromDirectory(QString::fromStdString(UserPaths::getUserDataPath()), userDataPath);
}
#endif // INCLUDES_DEFAULT_H
+2
View File
@@ -1,6 +1,8 @@
#ifndef QT_GRAPHICS_VIEW_H
#define QT_GRAPHICS_VIEW_H
#include <memory>
#include <QGraphicsView>
class QTimer;