From b949766662468e4c45b245022ebb3602d5c954be Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Thu, 12 Feb 2004 20:20:19 +0000 Subject: Safety check. 2004-02-12 Christian Persch * embed/downloader-view.c: (download_dialog_abort_cb): Safety check. --- ChangeLog | 6 ++++++ embed/downloader-view.c | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index cebbee513..f7b075dd6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2004-02-12 Christian Persch + + * embed/downloader-view.c: (download_dialog_abort_cb): + + Safety check. + 2004-02-12 Christian Persch * embed/mozilla/mozilla-embed.cpp: (mozilla_embed_security_change_cb): diff --git a/embed/downloader-view.c b/embed/downloader-view.c index d19213881..160346380 100644 --- a/embed/downloader-view.c +++ b/embed/downloader-view.c @@ -672,7 +672,8 @@ download_dialog_abort_cb (GtkButton *button, DownloaderView *dv) selection = gtk_tree_view_get_selection (GTK_TREE_VIEW(dv->priv->treeview)); - gtk_tree_selection_get_selected (selection, &model, &iter); + if (!gtk_tree_selection_get_selected (selection, &model, &iter)) return; + gtk_tree_model_get_value (model, &iter, COL_DOWNLOAD_OBJECT, &val); download = g_value_get_object (&val); -- cgit v1.2.3