Modifications relative to Win32

This commit is contained in:
Gregory Soutadé 2018-03-11 15:56:01 +01:00
parent b60c0ce417
commit b51c4d2d2d
1 changed files with 1 additions and 5 deletions

View File

@ -30,7 +30,7 @@
#include "model.hpp"
#ifdef WIN32
#define BDD_PATH "/" // In home directory (C:\Documents and settings\UserX\)
#define BDD_PATH "/KissCount/" // In home directory (C:\Documents and settings\UserX\)
#else
#define BDD_PATH "/.local/share/kisscount/"
#endif
@ -130,11 +130,7 @@ public:
Database(const char* filename, KissCount* kiss);
#ifdef WIN32
static QString GetDatabaseHome() { return "./" BDD_PATH; }
#else
static QString GetDatabaseHome() { return QDir::home().path() + BDD_PATH; }
#endif
static QString GetDatabaseFile() { return QString(BDD_FILE); }
std::list<QString> GetUsers();