Commit f988d6c9 authored by Dan Pascu's avatar Dan Pascu

Removed some unnecessary code

parent b3d552bd
...@@ -3327,8 +3327,6 @@ class ChatSessionListView(QListView): ...@@ -3327,8 +3327,6 @@ class ChatSessionListView(QListView):
def dropEvent(self, event): def dropEvent(self, event):
model = self.model() model = self.model()
if event.source() is self:
event.setDropAction(Qt.MoveAction)
if model.handleDroppedData(event.mimeData(), event.dropAction(), self.indexAt(event.pos())): if model.handleDroppedData(event.mimeData(), event.dropAction(), self.indexAt(event.pos())):
event.accept() event.accept()
super(ChatSessionListView, self).dropEvent(event) super(ChatSessionListView, self).dropEvent(event)
...@@ -4734,8 +4732,6 @@ class ConferenceParticipantListView(QListView, ColorHelperMixin): ...@@ -4734,8 +4732,6 @@ class ConferenceParticipantListView(QListView, ColorHelperMixin):
def dropEvent(self, event): def dropEvent(self, event):
model = self.model() model = self.model()
if event.source() is self:
event.setDropAction(Qt.MoveAction)
if model.handleDroppedData(event.mimeData(), event.dropAction(), self.indexAt(event.pos())): if model.handleDroppedData(event.mimeData(), event.dropAction(), self.indexAt(event.pos())):
event.accept() event.accept()
super(ConferenceParticipantListView, self).dropEvent(event) super(ConferenceParticipantListView, self).dropEvent(event)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment