[postr] Fix rename of a set when it is new



commit 1cd85641a13f44c3d6c95d054ce37150b47784f9
Author: Germán Póo-Caamaño <gpoo gnome org>
Date:   Wed Dec 1 00:52:20 2010 -0800

    Fix rename of a set when it is new
    
    When the user decides to rename a new set create, he or she
    can renamed it and it should update the combobox of sets.
    
    Signed-off-by: Germán Póo-Caamaño <gpoo gnome org>

 src/SetCombo.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/SetCombo.py b/src/SetCombo.py
index 553cbf3..b67fbe2 100644
--- a/src/SetCombo.py
+++ b/src/SetCombo.py
@@ -138,9 +138,9 @@ class SetCombo(gtk.ComboBox):
         dialog.show_all()
 
         response = dialog.run()
+        text = entry.get_text()
         dialog.destroy()
         if response == gtk.RESPONSE_OK:
-            text = entry.get_text()
             self.update_new_photoset(text.strip())
         return self.new_photoset_name
 



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