summaryrefslogtreecommitdiffstats
path: root/src/lib/Client/Frame.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/Client/Frame.py')
-rw-r--r--src/lib/Client/Frame.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/Client/Frame.py b/src/lib/Client/Frame.py
index 222b258f8..91e45d4b8 100644
--- a/src/lib/Client/Frame.py
+++ b/src/lib/Client/Frame.py
@@ -16,8 +16,12 @@ def promptFilter(prompt, entries):
ret = []
entries.sort(cmpent)
for entry in entries[:]:
+ if 'qtext' in entry.attrib:
+ iprompt = entry.get('qtext')
+ else:
+ iprompt = prompt % (entry.tag, entry.get('name'))
try:
- if raw_input(prompt % (entry.tag, entry.get('name'))) in ['y', 'Y']:
+ if raw_input(iprompt) in ['y', 'Y']:
ret.append(entry)
except:
continue