search_stop_searching (impl, TRUE);
error_message (impl, _("Could not send the search request"), message);
-
- set_busy_cursor (impl, FALSE);
}
/* Frees the data in the search_model */
g_signal_handlers_disconnect_by_data (priv->search_engine, impl);
g_object_unref (priv->search_engine);
priv->search_engine = NULL;
+ set_busy_cursor (impl, FALSE);
}
}
static void
search_entry_stop_cb (GtkFileChooserWidget *impl)
{
- g_object_set (impl, "search-mode", FALSE, NULL);
+ if (impl->priv->search_engine)
+ search_stop_searching (impl, FALSE);
+ else
+ g_object_set (impl, "search-mode", FALSE, NULL);
}
/* Hides the path bar and creates the search entry */