summaryrefslogtreecommitdiff
path: root/src/trg-main-window.c
diff options
context:
space:
mode:
authorGravatar Alan Fitton <ajf@eth0.org.uk>2011-09-16 07:22:52 +0000
committerGravatar Alan Fitton <ajf@eth0.org.uk>2011-09-16 07:22:52 +0000
commit1d03f2cb43dfafbf42b6beb1f7d0335a9448afbd (patch)
treea9c36d8ec783aca3be5d71c3d1c9b28e9ecc0ab4 /src/trg-main-window.c
parent56f42405eb79a21a068414913ea705a5c7ea0d18 (diff)
issue 104
Diffstat (limited to 'src/trg-main-window.c')
-rw-r--r--src/trg-main-window.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/trg-main-window.c b/src/trg-main-window.c
index 61e5c45..89a7123 100644
--- a/src/trg-main-window.c
+++ b/src/trg-main-window.c
@@ -1181,12 +1181,13 @@ void trg_main_window_conn_changed(TrgMainWindow * win, gboolean connected) {
;
if (!connected) {
- gtk_list_store_clear(GTK_LIST_STORE(priv->torrentModel));
trg_main_window_torrent_scrub(win);
trg_state_selector_disconnect(priv->stateSelector);
if (priv->graphNotebookIndex >= 0)
trg_torrent_graph_set_nothing(priv->graph);
+
+ trg_torrent_model_remove_all(priv->torrentModel);
}
trg_client_status_change(tc, connected);