summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2011-04-28 14:25:15 -0400
committerCosimo Cecchi <cosimoc@gnome.org>2011-04-29 11:44:05 -0400
commitfdcc2f36f549a18ea6f587fb9e9bad97f0114c59 (patch)
treef877ee67afc176051cabd33473db8566e9a7a23c
parentcd5a1e5cf95a165c66e7a097530058864dc3a38f (diff)
downloadnautilus-fdcc2f36f549a18ea6f587fb9e9bad97f0114c59.tar.gz
progress-ui-handler: don't add progress infos to the window twice
We were adding them twice in case there was already one operation running. https://bugzilla.gnome.org/show_bug.cgi?id=648857
-rw-r--r--src/nautilus-progress-ui-handler.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nautilus-progress-ui-handler.c b/src/nautilus-progress-ui-handler.c
index 247968221..fe295b261 100644
--- a/src/nautilus-progress-ui-handler.c
+++ b/src/nautilus-progress-ui-handler.c
@@ -315,10 +315,10 @@ handle_new_progress_info (NautilusProgressUIHandler *self,
G_CALLBACK (progress_info_finished_cb), self);
self->priv->active_infos++;
- progress_ui_handler_add_to_window (self, info);
if (self->priv->active_infos == 1) {
/* this is the only active operation, present the window */
+ progress_ui_handler_add_to_window (self, info);
gtk_window_present (GTK_WINDOW (self->priv->progress_window));
} else {
if (gtk_widget_get_visible (self->priv->progress_window)) {