aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXan Lopez <xan@gnome.org>2010-08-30 17:18:20 +0800
committerXan Lopez <xan@gnome.org>2010-08-30 17:19:37 +0800
commit3a6ed841d1fbbe93dd99056718e493161f98dd52 (patch)
tree5a0f46ca52afec3f9968d24fd3451451a501e273
parent7de4e2e117ded140cb1daefefe475b4199d47edd (diff)
downloadgsoc2013-epiphany-3a6ed841d1fbbe93dd99056718e493161f98dd52.tar
gsoc2013-epiphany-3a6ed841d1fbbe93dd99056718e493161f98dd52.tar.gz
gsoc2013-epiphany-3a6ed841d1fbbe93dd99056718e493161f98dd52.tar.bz2
gsoc2013-epiphany-3a6ed841d1fbbe93dd99056718e493161f98dd52.tar.lz
gsoc2013-epiphany-3a6ed841d1fbbe93dd99056718e493161f98dd52.tar.xz
gsoc2013-epiphany-3a6ed841d1fbbe93dd99056718e493161f98dd52.tar.zst
gsoc2013-epiphany-3a6ed841d1fbbe93dd99056718e493161f98dd52.zip
downloader-view.c: do not overwrite timeout ID
We just use it to update the buttons 100ms later, so having one is enough. If we overwrite it we might crash down the road when we run the timeout on a disposed DV.
-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 c5ec5c4ad..e62064a45 100644
--- a/embed/downloader-view.c
+++ b/embed/downloader-view.c
@@ -803,7 +803,8 @@ downloader_view_add_download (DownloaderView *dv,
}
#endif
- dv->priv->source_id = g_timeout_add (100, (GSourceFunc) update_buttons_timeout_cb, dv);
+ if (dv->priv->source_id == 0)
+ dv->priv->source_id = g_timeout_add (100, (GSourceFunc) update_buttons_timeout_cb, dv);
}
static void