summaryrefslogtreecommitdiffstats
path: root/src/gui-gtk
diff options
context:
space:
mode:
authorJiri Moskovcak <jmoskovc@redhat.com>2011-03-09 13:15:12 +0100
committerJiri Moskovcak <jmoskovc@redhat.com>2011-03-09 13:15:12 +0100
commite08fa6fbd01c6ae7e03762168f8e9b9803cb8eeb (patch)
tree5eaaad9b0e12d482a19a3f5abcbce4cc19c97571 /src/gui-gtk
parent7d6883304c12eb0f8be3fcf2e10e400b6aef267d (diff)
downloadabrt-e08fa6fbd01c6ae7e03762168f8e9b9803cb8eeb.tar.gz
abrt-e08fa6fbd01c6ae7e03762168f8e9b9803cb8eeb.tar.xz
abrt-e08fa6fbd01c6ae7e03762168f8e9b9803cb8eeb.zip
abrt-gtk: fixed crash when user clicks configure and no event is selected
Diffstat (limited to 'src/gui-gtk')
-rw-r--r--src/gui-gtk/event_config_dialog.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui-gtk/event_config_dialog.c b/src/gui-gtk/event_config_dialog.c
index 1be6e3f0..50bdc4f8 100644
--- a/src/gui-gtk/event_config_dialog.c
+++ b/src/gui-gtk/event_config_dialog.c
@@ -124,7 +124,10 @@ static void on_configure_event_cb(GtkWidget *button, gpointer user_data)
{
GtkTreeView *events_tv = (GtkTreeView *)user_data;
event_config_t *ec = get_event_config_from_row(events_tv);
- show_event_config_dialog(ec);
+ if(ec != NULL)
+ show_event_config_dialog(ec);
+ else
+ show_error_message(_("Please select a plugin from the list to edit its options."));
}
static void on_event_row_activated_cb(GtkTreeView *treeview, GtkTreePath *path, GtkTreeViewColumn *column, gpointer user_data)