[f-spot] Desensitize remove warning button when not enabled.



commit 35ccf3a9fc0a1ba16a8471e968573a02aaaad0f5
Author: Ruben Vermeersch <ruben savanne be>
Date:   Tue Jul 13 17:06:44 2010 +0200

    Desensitize remove warning button when not enabled.

 src/UI.Dialog/ImportDialog.cs |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/src/UI.Dialog/ImportDialog.cs b/src/UI.Dialog/ImportDialog.cs
index e59ca96..189f209 100644
--- a/src/UI.Dialog/ImportDialog.cs
+++ b/src/UI.Dialog/ImportDialog.cs
@@ -98,7 +98,7 @@ namespace FSpot.UI.Dialog
             duplicate_check.Active = Controller.DuplicateDetect;
             remove_check.Active = Controller.RemoveOriginals;
             remove_check.Sensitive = copy_check.Active;
-            remove_warning_button.Sensitive = copy_check.Active;
+            remove_warning_button.Sensitive = copy_check.Active && remove_check.Active;
         }
 
         void ScanSources ()
@@ -161,11 +161,14 @@ namespace FSpot.UI.Dialog
             copy_check.Toggled += (o, args) => {
                 Controller.CopyFiles = copy_check.Active;
                 remove_check.Sensitive = copy_check.Active;
-                remove_warning_button.Sensitive = copy_check.Active;
+                remove_warning_button.Sensitive = copy_check.Active && remove_check.Active;
             };
             recurse_check.Toggled += (o, args) => { Controller.RecurseSubdirectories = recurse_check.Active; };
             duplicate_check.Toggled += (o, args) => { Controller.DuplicateDetect = duplicate_check.Active; };
-            remove_check.Toggled += (o, args) => { Controller.RemoveOriginals = remove_check.Active; };
+            remove_check.Toggled += (o, args) => {
+                Controller.RemoveOriginals = remove_check.Active;
+                remove_warning_button.Sensitive = copy_check.Active && remove_check.Active;
+            };
             import_button.Clicked += (o, args) => StartImport ();
             cancel_button.Clicked += (o, args) => CancelImport ();
             remove_warning_button.Clicked += (o, args) => {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]