Commit 48dec984 authored by Vincent Untz's avatar Vincent Untz
Browse files

shell: Do not add a trailing dash in search target when comment is empty

When the comment is empty, we do not want to add a dash to the search
target, as it will be a trailing one.
parent c635d8e8
......@@ -199,7 +199,10 @@ cc_shell_model_add_item (CcShellModel *model,
pixbuf = load_pixbuf_for_gicon (icon);
search_target = g_strconcat (name, " - ", comment, NULL);
if (comment && comment[0])
search_target = g_strconcat (name, " - ", comment, NULL);
search_target = g_strdup (name);
gtk_list_store_insert_with_values (GTK_LIST_STORE (model), NULL, 0,
COL_NAME, name,
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment