135 |
GtkTreeModel *model, *b4model = NULL; |
GtkTreeModel *model, *b4model = NULL; |
136 |
GtkTreeViewColumn *column; |
GtkTreeViewColumn *column; |
137 |
|
|
138 |
if (GTK_WIDGET_VISIBLE (b4dialog)) |
if (b4dialog && GTK_WIDGET_VISIBLE (b4dialog)) |
139 |
{ |
{ |
140 |
/* clear the list */ |
/* clear the list */ |
141 |
b4treeview = lookup_widget (b4dialog, "b4treeview"); |
b4treeview = lookup_widget (b4dialog, "b4treeview"); |
150 |
} |
} |
151 |
|
|
152 |
/* search all logs, if there is a match display it */ |
/* search all logs, if there is a match display it */ |
153 |
if (GTK_WIDGET_VISIBLE (b4dialog)|| preferences.typeaheadfind == 1) |
if ((b4dialog && GTK_WIDGET_VISIBLE (b4dialog))|| |
154 |
|
preferences.typeaheadfind == 1) |
155 |
{ |
{ |
156 |
for (i = 0; i < g_list_length (logwindowlist); i++) |
for (i = 0; i < g_list_length (logwindowlist); i++) |
157 |
{ |
{ |
195 |
} |
} |
196 |
found = TRUE; /* lookup only once */ |
found = TRUE; /* lookup only once */ |
197 |
} |
} |
198 |
if (GTK_WIDGET_VISIBLE (b4dialog) && |
if (b4dialog && GTK_WIDGET_VISIBLE (b4dialog) && |
199 |
!g_ascii_strncasecmp (callsign, logcallsign, strlen (callsign))) |
!g_ascii_strncasecmp (callsign, logcallsign, strlen (callsign))) |
200 |
{ /* worked b4 */ |
{ /* worked b4 */ |
201 |
b4[0] = g_strdup (logw->logname); |
b4[0] = g_strdup (logw->logname); |
216 |
} |
} |
217 |
} |
} |
218 |
|
|
219 |
if (GTK_WIDGET_VISIBLE (b4dialog)) |
if (b4dialog && GTK_WIDGET_VISIBLE (b4dialog)) |
220 |
{ |
{ |
221 |
for (j = 0; j < QSO_FIELDS + 1; j++) |
for (j = 0; j < QSO_FIELDS + 1; j++) |
222 |
g_free (b4[j]); |
g_free (b4[j]); |