forked from openlp/openlp
Bug #967522: Don't drag from empty service manager area
This commit is contained in:
parent
9d3093a99f
commit
3fc81ea230
@ -77,7 +77,7 @@ class ServiceManagerList(QtGui.QTreeWidget):
|
|||||||
if event.buttons() != QtCore.Qt.LeftButton:
|
if event.buttons() != QtCore.Qt.LeftButton:
|
||||||
event.ignore()
|
event.ignore()
|
||||||
return
|
return
|
||||||
if not self.selectedItems():
|
if not self.itemAt(self.mapFromGlobal(QtGui.QCursor.pos())):
|
||||||
event.ignore()
|
event.ignore()
|
||||||
return
|
return
|
||||||
drag = QtGui.QDrag(self)
|
drag = QtGui.QDrag(self)
|
||||||
|
Loading…
Reference in New Issue
Block a user