summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 9d9f4d9..f851963 100644
--- a/src/main.c
+++ b/src/main.c
@@ -963,7 +963,7 @@ static bool do_submit(struct tofi *tofi)
* we previously sorted by history count. This needs fixing.
*/
desktop_vec_sort(&entry->apps);
- struct desktop_entry *app = desktop_vec_find(&entry->apps, res);
+ struct desktop_entry *app = desktop_vec_find_sorted(&entry->apps, res);
if (app == NULL) {
log_error("Couldn't find application file! This shouldn't happen.\n");
return false;