ui: sorting search results

* search results are sorted by: score > length > name
* fixed crash that occurred when trying to get a node by id with id == 0
This commit is contained in:
malte_langkabel
2016-04-18 14:05:27 +02:00
parent 325bc6ac83
commit c7940eb34f
7 changed files with 69 additions and 9 deletions
+1 -1
View File
@@ -104,7 +104,7 @@ private:
void log(std::string type, std::string str, const ParseLocation& location) const;
SearchIndex m_commandIndex;
SearchIndex m_searchIndex;
SearchIndex m_elementIndex;
SqliteStorage m_sqliteStorage;