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:
parent
9762839b78
commit
9b9fa13636
|
@ -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();
|
||||
}});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user