forked from openlp/openlp
Change message code
This commit is contained in:
parent
4b08a7a253
commit
38e72ca137
@ -31,7 +31,7 @@ from PyQt4 import QtCore, QtGui
|
||||
|
||||
from openlp.core.lib import MediaManagerItem, BaseListWithDnD, build_icon, \
|
||||
context_menu_action, ItemCapabilities, SettingsManager, translate, \
|
||||
check_item_selected
|
||||
check_item_selected, Receiver
|
||||
from openlp.core.utils import AppLocation, get_images_filter
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
@ -221,11 +221,11 @@ class ImageMediaItem(MediaManagerItem):
|
||||
(path, name) = os.path.split(filename)
|
||||
self.parent.liveController.display.directImage(name, filename)
|
||||
else:
|
||||
QtGui.QMessageBox.critical(self,
|
||||
translate('ImagePlugin.MediaItem', 'Live background could '
|
||||
'not be replaced.'),
|
||||
unicode(translate('ImagePlugin.MediaItem',
|
||||
'The image %s no longer exists.')) % filename)
|
||||
Receiver.send_message(u'openlp_error_message', {
|
||||
u'title': translate('ImagePlugin.MediaItem',
|
||||
'Live background could not be replaced.'),
|
||||
u'message': unicode(translate('ImagePlugin.MediaItem',
|
||||
'The image file %s no longer exists.')) % filename})
|
||||
self.resetButton.setVisible(True)
|
||||
|
||||
def onPreviewClick(self):
|
||||
|
@ -119,7 +119,7 @@ class MediaMediaItem(MediaManagerItem):
|
||||
Receiver.send_message(u'openlp_error_message', {
|
||||
u'title': translate('MediaPlugin.MediaItem',
|
||||
'Live background could not be replaced.'),
|
||||
u'message': unicode(translate('ImagePlugin.MediaItem',
|
||||
u'message': unicode(translate('MediaPlugin.MediaItem',
|
||||
'The media file %s no longer exists.')) % filename})
|
||||
self.resetButton.setVisible(True)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user