Fix crash in quicksearch keypress handling.
authorAndrej Kacian <ticho@claws-mail.org>
Tue, 8 May 2018 14:54:53 +0000 (16:54 +0200)
committerAndrej Kacian <ticho@claws-mail.org>
Tue, 8 May 2018 14:54:53 +0000 (16:54 +0200)
The fourth argument to g_signal_emit_by_name() in this case
is not the signal user data, but a pointer where to store the
return value.

src/mainwindow.c

index 4f56588..fb6d2a4 100644 (file)
@@ -1369,7 +1369,8 @@ static gboolean mainwindow_key_pressed (GtkWidget *widget, GdkEventKey *event,
        {
                GtkWidget *entry =
                        quicksearch_get_entry(mainwin->summaryview->quicksearch);
-               g_signal_emit_by_name(entry, "key-press-event", event, data);
+               gboolean dummy;
+               g_signal_emit_by_name(entry, "key-press-event", event, &dummy);
                return TRUE;
        }