Correct Theme name for Export if default

This commit is contained in:
Tim Bentley 2009-10-11 07:25:37 +01:00
parent f53a6fddeb
commit 56930f1e65
2 changed files with 3 additions and 3 deletions

View File

@ -90,7 +90,7 @@ class ThemeManager(QtGui.QWidget):
self.onDeleteTheme))
self.ThemeListWidget.addAction(contextMenuAction(self.ThemeListWidget,
u':/themes/theme_export.png',
translate(u'ThemeManager', u'Make Global Theme'),
translate(u'ThemeManager', u'Make Global'),
self.changeGlobalFromScreen))
self.ThemeListWidget.addAction(contextMenuAction(self.ThemeListWidget,
u':/themes/theme_export.png',
@ -207,7 +207,7 @@ class ThemeManager(QtGui.QWidget):
u'You have not selected a theme!'),
QtGui.QMessageBox.StandardButtons(QtGui.QMessageBox.Ok))
return
theme = unicode(item.text())
theme = unicode(item.data(QtCore.Qt.UserRole).toString())
path = QtGui.QFileDialog.getExistingDirectory(self,
u'Save Theme - (%s)' % theme,
self.config.get_last_dir(1) )

View File

@ -45,7 +45,7 @@ class LatestVersion(object):
if lastTest != thisTest:
print "Now check"
version_string = u''
req = urllib2.Request(u'http://www.openlp.oeg/files/version.txt')
req = urllib2.Request(u'http://www.openlp.org/files/version.txt')
req.add_header(u'User-Agent', u'Mozilla/4.0 (compatible; MSIE 5.5; Windows NT)')
try:
handle = urllib2.urlopen(req, None, 1)