← Back to team overview

openshot.code team mailing list archive

[Branch ~openshot.code/openshot/main] Rev 593: Applied a patch from Adam Sjøgren, to fix a bug while saving preferences on some versions of Pyth...

 

------------------------------------------------------------
revno: 593
fixes bug: https://launchpad.net/bugs/878502
author: Adam Sjøgren <asjo@xxxxxxxxxxxx>
committer: Jonathan Thomas <Jonathan.Oomph@xxxxxxxxx>
branch nick: openshot
timestamp: Wed 2011-10-19 15:59:26 -0500
message:
  Applied a patch from Adam Sjøgren, to fix a bug while saving preferences on some versions of Python (perhaps 2.7+), where saving integer values breaks.
modified:
  openshot/windows/preferences.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/preferences.py'
--- openshot/windows/preferences.py	2011-09-22 22:12:56 +0000
+++ openshot/windows/preferences.py	2011-10-19 20:59:26 +0000
@@ -489,7 +489,7 @@
 							element[0].appendChild(txt)
 						else:
 							# update existing text node
-							element[0].childNodes[0].data = section_dict[key]
+							element[0].childNodes[0].data = str(section_dict[key])
 					else:
 						#there is no matching element in the xml, 
 						#we need to add one