Commit 73eb2804 authored by Dan Pascu's avatar Dan Pascu

Do not start a drag from self when accepting drops from other entities

parent 54a4da95
...@@ -3124,7 +3124,6 @@ class ContactListView(QListView): ...@@ -3124,7 +3124,6 @@ class ContactListView(QListView):
if has_blink_contacts: if has_blink_contacts:
QApplication.instance().main_window.switch_view_button.dnd_active = True QApplication.instance().main_window.switch_view_button.dnd_active = True
event.accept() event.accept()
self.setState(self.DraggingState)
def dragLeaveEvent(self, event): def dragLeaveEvent(self, event):
super(ContactListView, self).dragLeaveEvent(event) super(ContactListView, self).dragLeaveEvent(event)
...@@ -3489,7 +3488,6 @@ class ContactSearchListView(QListView): ...@@ -3489,7 +3488,6 @@ class ContactSearchListView(QListView):
event.ignore() event.ignore()
else: else:
event.accept() event.accept()
self.setState(self.DraggingState)
def dragLeaveEvent(self, event): def dragLeaveEvent(self, event):
super(ContactSearchListView, self).dragLeaveEvent(event) super(ContactSearchListView, self).dragLeaveEvent(event)
...@@ -3723,7 +3721,6 @@ class ContactDetailView(QListView): ...@@ -3723,7 +3721,6 @@ class ContactDetailView(QListView):
event.ignore() event.ignore()
else: else:
event.accept() event.accept()
self.setState(self.DraggingState)
def dragLeaveEvent(self, event): def dragLeaveEvent(self, event):
super(ContactDetailView, self).dragLeaveEvent(event) super(ContactDetailView, self).dragLeaveEvent(event)
......
...@@ -2319,7 +2319,6 @@ class AudioSessionListView(QListView): ...@@ -2319,7 +2319,6 @@ class AudioSessionListView(QListView):
if event_source is self: if event_source is self:
event.setDropAction(Qt.MoveAction) event.setDropAction(Qt.MoveAction)
event.accept() event.accept()
self.setState(self.DraggingState)
def dragLeaveEvent(self, event): def dragLeaveEvent(self, event):
super(AudioSessionListView, self).dragLeaveEvent(event) super(AudioSessionListView, self).dragLeaveEvent(event)
...@@ -3084,7 +3083,6 @@ class ChatSessionListView(QListView): ...@@ -3084,7 +3083,6 @@ class ChatSessionListView(QListView):
event.ignore() event.ignore()
else: else:
event.accept() event.accept()
self.setState(self.DraggingState)
def dragLeaveEvent(self, event): def dragLeaveEvent(self, event):
super(ChatSessionListView, self).dragLeaveEvent(event) super(ChatSessionListView, self).dragLeaveEvent(event)
...@@ -3539,7 +3537,6 @@ class ConferenceParticipantListView(QListView, ColorHelperMixin): ...@@ -3539,7 +3537,6 @@ class ConferenceParticipantListView(QListView, ColorHelperMixin):
event.ignore() event.ignore()
else: else:
event.accept() event.accept()
self.setState(self.DraggingState)
def dragLeaveEvent(self, event): def dragLeaveEvent(self, event):
super(ConferenceParticipantListView, self).dragLeaveEvent(event) super(ConferenceParticipantListView, self).dragLeaveEvent(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