Skip to content

Commit

Permalink
search provider: Fix incorrect assumption
Browse files Browse the repository at this point in the history
Not every application window is a TerminalWindow.

https://bugzilla.redhat.com/show_bug.cgi?id=1398958`
  • Loading branch information
Christian Persch committed Nov 27, 2016
1 parent d4e25a5 commit 777e66d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/terminal-search-provider.c
Expand Up @@ -119,9 +119,12 @@ handle_get_initial_result_set_cb (TerminalSearchProvider2 *skeleton,
windows = gtk_application_get_windows (GTK_APPLICATION (app));
for (l = windows; l != NULL; l = l->next)
{
TerminalWindow *window = TERMINAL_WINDOW (l->data);
TerminalWindow *window = (TerminalWindow*)(l->data);
GList *c, *containers;

if (!TERMINAL_IS_WINDOW (l->data))
continue;

containers = terminal_window_list_screen_containers (window);
for (c = containers; c != NULL; c = c->next)
{
Expand Down

0 comments on commit 777e66d

Please sign in to comment.