1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

Change column order when filling peer cache

A minor detail, but worth it.
This commit is contained in:
tux3 2015-12-19 04:42:55 +01:00
parent 9762839b78
commit 9b9fa13636
No known key found for this signature in database
GPG Key ID: 7E086DD661263264

View File

@ -195,9 +195,9 @@ void History::init()
"CREATE TABLE IF NOT EXISTS faux_offline_pending (id INTEGER PRIMARY KEY);");
// Cache our current peers
db.execLater(RawDatabase::Query{"SELECT id, public_key FROM peers;", [this](const QVector<QVariant>& row)
db.execLater(RawDatabase::Query{"SELECT public_key, id FROM peers;", [this](const QVector<QVariant>& row)
{
peers[row[1].toString()] = row[0].toInt();
peers[row[0].toString()] = row[1].toInt();
}});
}