Avoid a crash when deleting the first character in the filter.

svn path=/trunk/; revision=33168
This commit is contained in:
Stig Bjørlykke 2010-06-08 21:36:31 +00:00
parent dd1de7cf83
commit 49330ef460
1 changed files with 1 additions and 1 deletions

View File

@ -774,7 +774,7 @@ filter_autocomplete_handle_backspace(GtkWidget *filter_te, GtkWidget *list, GtkW
prefix_len = strlen(prefix);
if (prefix_len < 1) {
if (prefix_len <= 1) {
/* Remove the popup window for protocols */
gtk_widget_destroy(popup_win);
g_object_set_data(G_OBJECT(main_win), E_FILT_AUTOCOMP_PTR_KEY, NULL);