aboutsummaryrefslogtreecommitdiffstats
path: root/embed
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-02-13 04:20:19 +0800
committerChristian Persch <chpe@src.gnome.org>2004-02-13 04:20:19 +0800
commitb949766662468e4c45b245022ebb3602d5c954be (patch)
treeafd700c492b5818c92362632aa6753fcd1b67941 /embed
parent3cb7a1e560628b39d2f747275be8399c2cd162a9 (diff)
downloadgsoc2013-epiphany-b949766662468e4c45b245022ebb3602d5c954be.tar
gsoc2013-epiphany-b949766662468e4c45b245022ebb3602d5c954be.tar.gz
gsoc2013-epiphany-b949766662468e4c45b245022ebb3602d5c954be.tar.bz2
gsoc2013-epiphany-b949766662468e4c45b245022ebb3602d5c954be.tar.lz
gsoc2013-epiphany-b949766662468e4c45b245022ebb3602d5c954be.tar.xz
gsoc2013-epiphany-b949766662468e4c45b245022ebb3602d5c954be.tar.zst
gsoc2013-epiphany-b949766662468e4c45b245022ebb3602d5c954be.zip
Safety check.
2004-02-12 Christian Persch <chpe@cvs.gnome.org> * embed/downloader-view.c: (download_dialog_abort_cb): Safety check.
Diffstat (limited to 'embed')
-rw-r--r--embed/downloader-view.c3
1 files changed, 2 insertions, 1 deletions
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);