forked from openlp/openlp
Correct Theme name for Export if default
This commit is contained in:
parent
f53a6fddeb
commit
56930f1e65
@ -90,7 +90,7 @@ class ThemeManager(QtGui.QWidget):
|
|||||||
self.onDeleteTheme))
|
self.onDeleteTheme))
|
||||||
self.ThemeListWidget.addAction(contextMenuAction(self.ThemeListWidget,
|
self.ThemeListWidget.addAction(contextMenuAction(self.ThemeListWidget,
|
||||||
u':/themes/theme_export.png',
|
u':/themes/theme_export.png',
|
||||||
translate(u'ThemeManager', u'Make Global Theme'),
|
translate(u'ThemeManager', u'Make Global'),
|
||||||
self.changeGlobalFromScreen))
|
self.changeGlobalFromScreen))
|
||||||
self.ThemeListWidget.addAction(contextMenuAction(self.ThemeListWidget,
|
self.ThemeListWidget.addAction(contextMenuAction(self.ThemeListWidget,
|
||||||
u':/themes/theme_export.png',
|
u':/themes/theme_export.png',
|
||||||
@ -207,7 +207,7 @@ class ThemeManager(QtGui.QWidget):
|
|||||||
u'You have not selected a theme!'),
|
u'You have not selected a theme!'),
|
||||||
QtGui.QMessageBox.StandardButtons(QtGui.QMessageBox.Ok))
|
QtGui.QMessageBox.StandardButtons(QtGui.QMessageBox.Ok))
|
||||||
return
|
return
|
||||||
theme = unicode(item.text())
|
theme = unicode(item.data(QtCore.Qt.UserRole).toString())
|
||||||
path = QtGui.QFileDialog.getExistingDirectory(self,
|
path = QtGui.QFileDialog.getExistingDirectory(self,
|
||||||
u'Save Theme - (%s)' % theme,
|
u'Save Theme - (%s)' % theme,
|
||||||
self.config.get_last_dir(1) )
|
self.config.get_last_dir(1) )
|
||||||
|
@ -45,7 +45,7 @@ class LatestVersion(object):
|
|||||||
if lastTest != thisTest:
|
if lastTest != thisTest:
|
||||||
print "Now check"
|
print "Now check"
|
||||||
version_string = u''
|
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)')
|
req.add_header(u'User-Agent', u'Mozilla/4.0 (compatible; MSIE 5.5; Windows NT)')
|
||||||
try:
|
try:
|
||||||
handle = urllib2.urlopen(req, None, 1)
|
handle = urllib2.urlopen(req, None, 1)
|
||||||
|
Loading…
Reference in New Issue
Block a user