Use ~/.local/share/kisscount instead of ~/.kisscount for default database location

This commit is contained in:
Grégory Soutadé 2012-02-26 15:42:09 +01:00
parent 83d144ca3c
commit 37626b09e1

View File

@ -44,7 +44,7 @@ Database::Database(const char* filename, KissCount* kiss) : _kiss(kiss)
{ {
std::ifstream bdd_file; std::ifstream bdd_file;
QString sPath = QDir::home().path() + "/" + BDD_FILE; QString sPath = QDir::home().path() + "/.local/share/kisscount/" + BDD_FILE;
_db = QSqlDatabase::addDatabase("QSQLITE"); _db = QSqlDatabase::addDatabase("QSQLITE");