aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Cullmann <cullmann@kde.org>2014-01-24 15:48:51 (GMT)
committerChristoph Cullmann <cullmann@kde.org>2014-01-24 15:48:51 (GMT)
commit91f48579ca146db20f221217a66a95e90c951996 (patch)
tree91d54864ee3464f1be9f121e16a69e07751aea85
parent86f26238e78399a1bbff4583de29d21459b032ec (diff)
ignore pure url drops
-rw-r--r--src/view/kateviewinternal.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/view/kateviewinternal.cpp b/src/view/kateviewinternal.cpp
index bebe3e6..75139ff 100644
--- a/src/view/kateviewinternal.cpp
+++ b/src/view/kateviewinternal.cpp
@@ -3195,11 +3195,15 @@ void KateViewInternal::dragMoveEvent(QDragMoveEvent *event)
void KateViewInternal::dropEvent(QDropEvent *event)
{
+ /**
+ * if we have urls, pass this event off to the hosting application
+ */
if (event->mimeData()->hasUrls()) {
-
emit dropEventPass(event);
-
- } else if (event->mimeData()->hasText() && doc()->isReadWrite()) {
+ return;
+ }
+
+ if (event->mimeData()->hasText() && doc()->isReadWrite()) {
const QString text = event->mimeData()->text();