diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2019-12-15 02:56:04 +0100 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2019-12-15 02:56:04 +0100 |
commit | 5fc1f3bd678cca690268eafbb7e4595657a6e133 (patch) | |
tree | ed88e9c771494672045d16aca6831b3fde40d112 /src/QuickSwitcher.cpp | |
parent | Add qml debugging option (diff) | |
download | nheko-5fc1f3bd678cca690268eafbb7e4595657a6e133.tar.xz |
Reduce overhead of Cache.h
Diffstat (limited to 'src/QuickSwitcher.cpp')
-rw-r--r-- | src/QuickSwitcher.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/QuickSwitcher.cpp b/src/QuickSwitcher.cpp index f8f6c001..29683bb3 100644 --- a/src/QuickSwitcher.cpp +++ b/src/QuickSwitcher.cpp @@ -93,8 +93,7 @@ QuickSwitcher::QuickSwitcher(QWidget *parent) QtConcurrent::run([this, query = query.toLower()]() { try { - emit queryResults( - cache::client()->searchRooms(query.toStdString())); + emit queryResults(cache::searchRooms(query.toStdString())); } catch (const lmdb::error &e) { qWarning() << "room search failed:" << e.what(); } |