[orca/new-settings] Avoid to load the profile if no profile has been written yet (first start)



commit 1c597112496e51676fdb3656b502240e4d13b03b
Author: Juanje Ojeda <jojeda emergya es>
Date:   Mon Sep 13 11:29:34 2010 +0200

    Avoid to load the profile if no profile has been written yet (first start)

 src/orca/orca_gui_prefs.py |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/orca/orca_gui_prefs.py b/src/orca/orca_gui_prefs.py
index 760f73b..ee6293a 100644
--- a/src/orca/orca_gui_prefs.py
+++ b/src/orca/orca_gui_prefs.py
@@ -474,8 +474,7 @@ class OrcaSetupGUI(orca_gtkbuilder.GtkBuilderWrapper):
                         self._initComboBox(self.get_widget("speechFamilies"))
         self._initSpeechState()
 
-        path = os.path.join(settings.userPrefsDir, "user-settings.py")
-        self._isInitialSetup = not os.path.exists(path)
+        self._isInitialSetup = not os.path.exists(settings.userPrefsDir)
 
         self._initGUIState()
 
@@ -4464,6 +4463,8 @@ class OrcaSetupGUI(orca_gtkbuilder.GtkBuilderWrapper):
     def loadProfileButtonClicked(self, widget):
         """Load profile button clicked handler"""
 
+        if not self._isInitialSetup:
+            return
         # First of all, we give a chance of cancel profile change
         message = "You are about to change the active profile. If you\n" + \
                   "have just make changes in your preferences, it will\n" + \



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