From bf651210c6201168d4aee664f13f3581fcdab0e2 Mon Sep 17 00:00:00 2001 From: Diego Escalante Urrelo Date: Tue, 2 Mar 2010 19:15:39 -0500 Subject: downloader-view: fix controls sensitivity When there are no downloads left, the Pause/Cancel buttons should not be sensitive. Bug #611779 --- embed/downloader-view.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'embed') diff --git a/embed/downloader-view.c b/embed/downloader-view.c index b87b9b2fb..0ec321059 100644 --- a/embed/downloader-view.c +++ b/embed/downloader-view.c @@ -1003,9 +1003,10 @@ downloader_view_remove_download (DownloaderView *dv, WebKitDownload *download) update_status_icon (dv); /* Close the dialog if there are no more downloads */ - if (!g_hash_table_size (dv->priv->downloads_hash)) { + gtk_widget_set_sensitive (dv->priv->abort_button, FALSE); + gtk_widget_set_sensitive (dv->priv->pause_button, FALSE); g_object_unref (dv); } } -- cgit v1.2.3