diff options
author | Alan Fitton <ajf@eth0.org.uk> | 2012-01-18 23:30:02 +0000 |
---|---|---|
committer | Alan Fitton <ajf@eth0.org.uk> | 2012-01-18 23:30:02 +0000 |
commit | c427fa73c4f7853de992eda9de1c818c2ee525aa (patch) | |
tree | c1203a6a808f242038cb063eba4843cf97f2c40f /src/trg-stats-dialog.c | |
parent | 2512c508cb6b8edeefed308a3dce61054d58bb06 (diff) |
full and default gtk3 support, almost. the graph is disabled as the drawing api has changed quite a bit. yet another implementation to pass arguments, which made a cleanup of main.c necessary.
Diffstat (limited to 'src/trg-stats-dialog.c')
-rw-r--r-- | src/trg-stats-dialog.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/trg-stats-dialog.c b/src/trg-stats-dialog.c index 20d8ea2..7348d5e 100644 --- a/src/trg-stats-dialog.c +++ b/src/trg-stats-dialog.c @@ -232,8 +232,9 @@ static gboolean trg_update_stats_timerfunc(gpointer data) if (TRG_IS_STATS_DIALOG(data)) { priv = TRG_STATS_DIALOG_GET_PRIVATE(data); - dispatch_async(priv->client, session_stats(), on_stats_reply, - data); + if (trg_client_is_connected(priv->client)) + dispatch_async(priv->client, session_stats(), on_stats_reply, + data); } return FALSE; |