Improved ws_entry_visible

newfile
Markus Koch 2017-02-07 19:56:03 +01:00
parent 686f828c81
commit 130ce196a2
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ static gboolean mainWindow_workspace_entry_visible(GtkTreeModel *model,
searchString = (gchar *)gtk_entry_get_text(GTK_ENTRY(mainWindow->workspaceSearch));
if (g_strcmp0(searchString, "")) {
if (searchString[0]) {
regex = g_regex_new(searchString, G_REGEX_CASELESS, 0, NULL);
gtk_tree_model_get(model, iter, WSCOL_PATH, &temp, -1);
if (g_regex_match(regex, temp, 0, &match_info) && g_match_info_matches(match_info))