summaryrefslogtreecommitdiffstats
path: root/WebCore/platform/qt/DragDataQt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/platform/qt/DragDataQt.cpp')
-rw-r--r--WebCore/platform/qt/DragDataQt.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/WebCore/platform/qt/DragDataQt.cpp b/WebCore/platform/qt/DragDataQt.cpp
index 9d95373..bc5cce1 100644
--- a/WebCore/platform/qt/DragDataQt.cpp
+++ b/WebCore/platform/qt/DragDataQt.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2007, 2008 Apple Inc. All rights reserved.
+ * Copyright (C) 2007, 2008, 2009 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -30,7 +30,6 @@
#include "Document.h"
#include "DocumentFragment.h"
#include "markup.h"
-#include "NotImplemented.h"
#include <QList>
#include <QMimeData>
@@ -126,6 +125,10 @@ String DragData::asURL(String* title) const
if (!m_platformDragData)
return String();
QList<QUrl> urls = m_platformDragData->urls();
+
+ if (urls.isEmpty())
+ return String();
+
return urls.first().toString();
}