From fb55089673387a6bbe0071cd5e40dd5d2eae2143 Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Mon, 16 Feb 2009 16:55:30 +0100 Subject: Don't cancel UI operation when combo box changes --- TODO | 2 +- src/nautilus-gdu-window.c | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/TODO b/TODO index 243d91d..c207336 100644 --- a/TODO +++ b/TODO @@ -10,7 +10,7 @@ Short-term: DONE - make a Fedora package DONE, NEEDS_TESTING - !! set partition type too !! (only for MBR?) OK - check label length before formatting (should be done automatically) -- DK returning wrong values for FAT and NTFS - - get rid of the Revert button + DONE - get rid of the Revert button Standalone mode: DONE - refresh volume selector on hotplug/unplug diff --git a/src/nautilus-gdu-window.c b/src/nautilus-gdu-window.c index 296716e..8fe5120 100644 --- a/src/nautilus-gdu-window.c +++ b/src/nautilus-gdu-window.c @@ -1239,9 +1239,12 @@ volume_selector_combo_box_changed (GtkWidget *combo_box, FormatDialogPrivate *pr g_return_if_fail (priv != NULL); presentable = gdu_util_presentable_combo_box_get_selected (priv->volume_selector); - set_new_presentable (priv, presentable); - update_ui (priv); - update_ui_progress (priv, NULL, FALSE); + if (presentable != priv->presentable) { + set_new_presentable (priv, presentable); + update_ui (priv); + if (! priv->job_running) + update_ui_progress (priv, NULL, FALSE); + } if (presentable) g_object_unref (presentable); } -- cgit