[orca/new-settings] Check for profileToSaveLabel to no be empty before to make strings operations with it
- From: Juanje Ojeda Croissier <jojeda src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca/new-settings] Check for profileToSaveLabel to no be empty before to make strings operations with it
- Date: Mon, 13 Sep 2010 10:17:11 +0000 (UTC)
commit ea181dbc37e487140575691de434f19e6cae159d
Author: Juanje Ojeda <jojeda emergya es>
Date: Mon Sep 13 11:34:02 2010 +0200
Check for profileToSaveLabel to no be empty before to make strings operations with it
src/orca/orca_gui_prefs.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/orca_gui_prefs.py b/src/orca/orca_gui_prefs.py
index ee6293a..806fd50 100644
--- a/src/orca/orca_gui_prefs.py
+++ b/src/orca/orca_gui_prefs.py
@@ -4417,6 +4417,8 @@ class OrcaSetupGUI(orca_gtkbuilder.GtkBuilderWrapper):
"""Show profile Dialog to add a new one"""
profileToSaveLabel = orca_gui_profile.showProfileUI()
+ if not profileToSaveLabel:
+ return
profileToSave = profileToSaveLabel.replace(' ','_').lower()
def saveActiveProfile(newProfile = True):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]