Bug #967522: Don't drag from empty service manager area

bzr-revno: 1929
Fixes: https://launchpad.net/bugs/967522
This commit is contained in:
Meinert Jordan 2012-04-02 23:12:51 +02:00 committed by Raoul Snyman
commit a57289da8c

View File

@ -77,7 +77,7 @@ class ServiceManagerList(QtGui.QTreeWidget):
if event.buttons() != QtCore.Qt.LeftButton:
event.ignore()
return
if not self.selectedItems():
if not self.itemAt(self.mapFromGlobal(QtGui.QCursor.pos())):
event.ignore()
return
drag = QtGui.QDrag(self)