Make sure we use dnd position if available. Fixes bug 1410843.

Fixes: https://launchpad.net/bugs/1410843
This commit is contained in:
Tomas Groth 2015-01-18 21:44:34 +00:00
parent ff87971270
commit d424ae51fa

View File

@ -1396,7 +1396,8 @@ class ServiceManager(OpenLPMixin, RegistryMixin, QtGui.QWidget, Ui_ServiceManage
if expand is None:
expand = Settings().value('advanced/expand service item')
item.from_service = True
self.drop_position = position
if position != -1:
self.drop_position = position
if replace:
s_item, child = self.find_service_item()
item.merge(self.service_items[s_item]['service_item'])