forked from openlp/openlp
Two bugs.
Value as QString instead of Unicode Save Plugin as Lower instead of current case. Fixes: https://launchpad.net/bugs/704522
This commit is contained in:
parent
fca78af3df
commit
1c2dee5a55
@ -243,7 +243,7 @@ class ServiceItem(object):
|
|||||||
file to represent this item.
|
file to represent this item.
|
||||||
"""
|
"""
|
||||||
service_header = {
|
service_header = {
|
||||||
u'name': self.name.lower(),
|
u'name': self.name,
|
||||||
u'plugin': self.name,
|
u'plugin': self.name,
|
||||||
u'theme': self.theme,
|
u'theme': self.theme,
|
||||||
u'title': self.title,
|
u'title': self.title,
|
||||||
|
@ -1082,7 +1082,7 @@ class ServiceManager(QtGui.QWidget):
|
|||||||
"""
|
"""
|
||||||
link = event.mimeData()
|
link = event.mimeData()
|
||||||
if link.hasText():
|
if link.hasText():
|
||||||
plugin = event.mimeData().text()
|
plugin = unicode(event.mimeData().text())
|
||||||
item = self.serviceManagerList.itemAt(event.pos())
|
item = self.serviceManagerList.itemAt(event.pos())
|
||||||
# ServiceManager started the drag and drop
|
# ServiceManager started the drag and drop
|
||||||
if plugin == u'ServiceManager':
|
if plugin == u'ServiceManager':
|
||||||
@ -1107,6 +1107,8 @@ class ServiceManager(QtGui.QWidget):
|
|||||||
# we are over somthing so lets investigate
|
# we are over somthing so lets investigate
|
||||||
pos = self._getParentItemData(item) - 1
|
pos = self._getParentItemData(item) - 1
|
||||||
serviceItem = self.serviceItems[pos]
|
serviceItem = self.serviceItems[pos]
|
||||||
|
print plugin, serviceItem[u'service_item'].name
|
||||||
|
print serviceItem[u'service_item'].is_capable(ItemCapabilities.AllowsAdditions)
|
||||||
if (plugin == serviceItem[u'service_item'].name and
|
if (plugin == serviceItem[u'service_item'].name and
|
||||||
serviceItem[u'service_item'].is_capable(
|
serviceItem[u'service_item'].is_capable(
|
||||||
ItemCapabilities.AllowsAdditions)):
|
ItemCapabilities.AllowsAdditions)):
|
||||||
|
Loading…
Reference in New Issue
Block a user