openshot.code team mailing list archive
-
openshot.code team
-
Mailing list archive
-
Message #00315
[Branch ~openshot.code/openshot/main] Rev 621: Fixed a bug when renaming tracks using a "&" character. Now it works fine.
------------------------------------------------------------
revno: 621
fixes bug: https://launchpad.net/bugs/879104
committer: Jonathan Thomas <Jonathan.Oomph@xxxxxxxxx>
branch nick: openshot
timestamp: Sun 2012-01-29 14:29:43 -0600
message:
Fixed a bug when renaming tracks using a "&" character. Now it works fine.
modified:
openshot/windows/MainGTK.py
--
lp:openshot
https://code.launchpad.net/~openshot.code/openshot/main
Your team OpenShot Code is subscribed to branch lp:openshot.
To unsubscribe from this branch go to https://code.launchpad.net/~openshot.code/openshot/main/+edit-subscription
=== modified file 'openshot/windows/MainGTK.py'
--- openshot/windows/MainGTK.py 2012-01-02 06:53:25 +0000
+++ openshot/windows/MainGTK.py 2012-01-29 20:29:43 +0000
@@ -2809,10 +2809,16 @@
# get correct gettext method
_ = self._
+ # replace bad characters
+ track_name = self.selected_track.name.replace("&", "&")
+
# get the new name of the track
- text = inputbox.input_box(title="Openshot", message=_("Please enter a track name."), default_text=self.selected_track.name)
+ text = inputbox.input_box(title="Openshot", message=_("Please enter a track name."), default_text=track_name)
if text:
+ # replace bad characters
+ text = text.replace("&", "&")
+
# rename track
self.project.sequences[0].rename_track(self.selected_track, text)