Browse Source

Change column order when filling peer cache

A minor detail, but worth it.
pull/2701/head
tux3 10 years ago
parent
commit
9b9fa13636
No known key found for this signature in database
GPG Key ID: 7E086DD661263264
  1. 4
      src/persistence/history.cpp

4
src/persistence/history.cpp

@ -195,9 +195,9 @@ void History::init() @@ -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…
Cancel
Save