[nautilus-share] Fix validation of false positives



commit ee8bc8c2ccf04a365c1d075fd9d1517d09f512cb
Author: Chow Loong Jin <hyperair gmail com>
Date:   Fri Jun 12 00:38:50 2009 +0800

    Fix validation of false positives
    
    If a user triggers the validation check to show that there is an error, it is
    not unset after the user has fixed it. This patch makes sure that the error
    message is removed and the input textbox is reset to its original state if the
    validation check passes.

 src/nautilus-share.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/nautilus-share.c b/src/nautilus-share.c
index fe6512d..e81a6b9 100644
--- a/src/nautilus-share.c
+++ b/src/nautilus-share.c
@@ -500,7 +500,10 @@ property_page_share_name_is_valid (PropertyPage *page)
 	  return FALSE;
 	}
       else
-	return TRUE;
+	{
+	  property_page_set_normal (page);
+	  return TRUE;
+	}
     }
 }
 



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