Skip to content

Commit

Permalink
Fix move core db to config path
Browse files Browse the repository at this point in the history
  • Loading branch information
ManuelSchneid3r committed Nov 7, 2017
1 parent 3225a2f commit 281e427
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/albertcore/src/core/albert.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -226,10 +226,11 @@ int Core::AlbertApp::run(int argc, char **argv) {
qDebug() << "Initializing database";

// If move database from old location in cache to config (since v0.14.7)
if ( QFile::exists(QString("%1/core.db").arg(cacheLocation)) )
qDebug() << "Moving 'core.db' to config path";
if ( QFile::exists(QString("%1/core.db").arg(cacheLocation)) ){
qInfo() << "Moving 'core.db' to config path";
QFile::rename(QString("%1/core.db").arg(cacheLocation),
QString("%1/core.db").arg(configLocation));
}

UsageDatabase::initialize();
UsageDatabase::trySendReport();
Expand Down

0 comments on commit 281e427

Please sign in to comment.