aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXan Lopez <xan@gnome.org>2010-08-30 17:18:20 +0800
committerDiego Escalante Urrelo <descalante@igalia.com>2010-08-31 04:43:09 +0800
commit0c764e313461fcd3cebbb765e4ecef689be17ee6 (patch)
treef00adb1daaac5a04d4feca947c3a9f5b491fb3ce
parentb6b6a29a4d17898b97b3e930b358c0861743edef (diff)
downloadgsoc2013-epiphany-0c764e313461fcd3cebbb765e4ecef689be17ee6.tar
gsoc2013-epiphany-0c764e313461fcd3cebbb765e4ecef689be17ee6.tar.gz
gsoc2013-epiphany-0c764e313461fcd3cebbb765e4ecef689be17ee6.tar.bz2
gsoc2013-epiphany-0c764e313461fcd3cebbb765e4ecef689be17ee6.tar.lz
gsoc2013-epiphany-0c764e313461fcd3cebbb765e4ecef689be17ee6.tar.xz
gsoc2013-epiphany-0c764e313461fcd3cebbb765e4ecef689be17ee6.tar.zst
gsoc2013-epiphany-0c764e313461fcd3cebbb765e4ecef689be17ee6.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