forked from openlp/openlp
fixed branch
This commit is contained in:
parent
fc38f62a17
commit
6c1e303dbd
@ -373,7 +373,7 @@ def create_action(parent, name, **kwargs):
|
|||||||
True in case the action will be considered a separator.
|
True in case the action will be considered a separator.
|
||||||
|
|
||||||
``data``
|
``data``
|
||||||
Data which is set as QVariant type.
|
The actions data.
|
||||||
|
|
||||||
``shortcuts``
|
``shortcuts``
|
||||||
A QList<QKeySequence> (or a list of strings) which are set as shortcuts.
|
A QList<QKeySequence> (or a list of strings) which are set as shortcuts.
|
||||||
|
@ -480,7 +480,6 @@ class ServiceManager(QtGui.QWidget):
|
|||||||
path)
|
path)
|
||||||
service = []
|
service = []
|
||||||
write_list = []
|
write_list = []
|
||||||
print 1
|
|
||||||
missing_list = []
|
missing_list = []
|
||||||
audio_files = []
|
audio_files = []
|
||||||
total_size = 0
|
total_size = 0
|
||||||
@ -501,12 +500,12 @@ class ServiceManager(QtGui.QWidget):
|
|||||||
write_list.append(path_from)
|
write_list.append(path_from)
|
||||||
if missing_list:
|
if missing_list:
|
||||||
Receiver.send_message(u'cursor_normal')
|
Receiver.send_message(u'cursor_normal')
|
||||||
title = unicode(translate('OpenLP.ServiceManager',
|
title = translate('OpenLP.ServiceManager',
|
||||||
'Service File(s) Missing'))
|
'Service File(s) Missing')
|
||||||
message = unicode(translate('OpenLP.ServiceManager',
|
message = translate('OpenLP.ServiceManager',
|
||||||
'The following file(s) in the service are missing:\n\t%s\n\n'
|
'The following file(s) in the service are missing:\n\t%s\n\n'
|
||||||
'These files will be removed if you continue to save.')
|
'These files will be removed if you continue to save.') % \
|
||||||
) % "\n\t".join(missing_list)
|
"\n\t".join(missing_list)
|
||||||
answer = QtGui.QMessageBox.critical(self, title,
|
answer = QtGui.QMessageBox.critical(self, title,
|
||||||
message,
|
message,
|
||||||
QtGui.QMessageBox.StandardButtons(
|
QtGui.QMessageBox.StandardButtons(
|
||||||
@ -591,7 +590,6 @@ class ServiceManager(QtGui.QWidget):
|
|||||||
self.mainwindow.addRecentFile(path_file_name)
|
self.mainwindow.addRecentFile(path_file_name)
|
||||||
self.setModified(False)
|
self.setModified(False)
|
||||||
delete_file(temp_file_name)
|
delete_file(temp_file_name)
|
||||||
print 2
|
|
||||||
return success
|
return success
|
||||||
|
|
||||||
def saveFileAs(self):
|
def saveFileAs(self):
|
||||||
|
@ -305,7 +305,7 @@ class MediaMediaItem(MediaManagerItem):
|
|||||||
filename = os.path.split(unicode(track))[1]
|
filename = os.path.split(unicode(track))[1]
|
||||||
item_name = QtGui.QListWidgetItem(filename)
|
item_name = QtGui.QListWidgetItem(filename)
|
||||||
item_name.setIcon(build_icon(ERROR))
|
item_name.setIcon(build_icon(ERROR))
|
||||||
item_name.setData(QtCore.Qt.UserRole, QtCore.QVariant(track))
|
item_name.setData(QtCore.Qt.UserRole, track)
|
||||||
elif track_info.isFile():
|
elif track_info.isFile():
|
||||||
filename = os.path.split(unicode(track))[1]
|
filename = os.path.split(unicode(track))[1]
|
||||||
item_name = QtGui.QListWidgetItem(filename)
|
item_name = QtGui.QListWidgetItem(filename)
|
||||||
|
@ -184,7 +184,7 @@ class PresentationMediaItem(MediaManagerItem):
|
|||||||
if not os.path.exists(file):
|
if not os.path.exists(file):
|
||||||
item_name = QtGui.QListWidgetItem(filename)
|
item_name = QtGui.QListWidgetItem(filename)
|
||||||
item_name.setIcon(build_icon(ERROR))
|
item_name.setIcon(build_icon(ERROR))
|
||||||
item_name.setData(QtCore.Qt.UserRole, QtCore.QVariant(file))
|
item_name.setData(QtCore.Qt.UserRole, file)
|
||||||
item_name.setToolTip(file)
|
item_name.setToolTip(file)
|
||||||
self.listView.addItem(item_name)
|
self.listView.addItem(item_name)
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user