From 485b4abe75c7bf70ca9f8609ba70428f806983a8 Mon Sep 17 00:00:00 2001
From: "Silas S. Brown" <ssb22@cam.ac.uk>
Date: Wed, 25 Nov 2009 13:57:55 +0000
Subject: [PATCH] Gradint update

git-svn-id: http://svn.code.sf.net/p/e-guidedog/code/ssb22/gradint@453 29193198-4895-4776-b068-10539e920549
---
 gradint-build/src/recording.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/gradint-build/src/recording.py b/gradint-build/src/recording.py
index 40d5c12..8a7a2da 100644
--- a/gradint-build/src/recording.py
+++ b/gradint-build/src/recording.py
@@ -254,7 +254,9 @@ class RecorderControls:
         editEntry.bind('<Return>',lambda *args:self.doEdit(editText,editEntry,row,col,filename))
         editEntry.bind('<Escape>',lambda *args:self.cancelEdit(editEntry,row,col,filename))
         self.scrollIntoView(editEntry)
-        if hasattr(self.coords2buttons.get((row-1,col+1),""),"is_synth_label"): self.addLabel(row-1,col+1,localise("(synth'd)"))
+        if hasattr(self.coords2buttons.get((row-1,col+1),""),"is_synth_label"):
+            self.addLabel(row-1,col+1,localise("(synth'd)"))
+            self.coords2buttons[(row-1,col+1)].is_synth_label = True
     def doEdit(self,editText,editEntry,row,col,filename):
         text = editText.get().encode("utf-8").strip(wsp)
         if text: open(filename,"w").write(text+"\n")
@@ -540,7 +542,7 @@ class RecorderControls:
                     newDir = self.currentDir+os.sep+fname
                     self.addButton(curRow,0,text=filename2unicode(fname),command=(lambda f=newDir:self.changeDir(f)))
                     curRow += 1
-                    hadDirectories = True
+                    if not flwr=="prompts": hadDirectories = True
             elif "_" in fname and languageof(fname) in allLangs: # something_lang where lang is a recognised language (don't just take "any _" because some podcasts etc will have _ in them)
               # TODO what if there are variants? (currently languageof won't recognise so will drop to the next case!)
               # TODO and what about letting them record _explain_ files etc from the GUI, + toggling !poetry
-- 
GitLab