From cf6128a222b6e9597fefd5cf9c9121ae08c77c26 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Sun, 2 Sep 2007 13:06:42 +0000 Subject: [PATCH] - Fixed drag'ndrop on non-KDE systems --- Changelog | 1 + TODO | 1 + src/GUI.cpp | 2 +- src/engineSelectDlg.cpp | 2 +- 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Changelog b/Changelog index 8786ac733..9806ea380 100644 --- a/Changelog +++ b/Changelog @@ -55,6 +55,7 @@ - BUGFIX: Made torrent deletion from hard-drive safer - BUGFIX: Prevent downloadFromUrl flooding - BUGFIX: ETA was wrong for torrents with filtered files + - BUGFIX: Fixed drag'n drop on non-KDE systems - COSMETIC: Redesigned torrent properties a little - COSMETIC: Redesigned options a little - COSMETIC: Display more logs messages concerning features diff --git a/TODO b/TODO index fd07be1e7..298760716 100644 --- a/TODO +++ b/TODO @@ -87,3 +87,4 @@ beta6->beta7 changelog: - BUGFIX: 'Unknown' is now displayed in search results columns where value is -1 - BUGFIX: Improved search engine core a little - BUGFIX: Forgot to remove *.pyc files when uninstalling a search plugin +- BUGFIX: Fixed drag'n drop on non-KDE systems diff --git a/src/GUI.cpp b/src/GUI.cpp index 4b171916f..4f8d2e23b 100644 --- a/src/GUI.cpp +++ b/src/GUI.cpp @@ -557,7 +557,7 @@ void GUI::dragEnterEvent(QDragEnterEvent *event) { foreach(mime, event->mimeData()->formats()){ qDebug("mimeData: %s", mime.toUtf8().data()); } - if (event->mimeData()->hasFormat(QString::fromUtf8("text/plain"))) { + if (event->mimeData()->hasFormat(QString::fromUtf8("text/plain")) || event->mimeData()->hasFormat(QString::fromUtf8("text/uri-list"))) { event->acceptProposedAction(); } } diff --git a/src/engineSelectDlg.cpp b/src/engineSelectDlg.cpp index f49da5436..c12ed4315 100644 --- a/src/engineSelectDlg.cpp +++ b/src/engineSelectDlg.cpp @@ -90,7 +90,7 @@ void engineSelectDlg::dragEnterEvent(QDragEnterEvent *event) { foreach(mime, event->mimeData()->formats()){ qDebug("mimeData: %s", mime.toUtf8().data()); } - if (event->mimeData()->hasFormat(QString::fromUtf8("text/plain"))) { + if (event->mimeData()->hasFormat(QString::fromUtf8("text/plain")) || event->mimeData()->hasFormat(QString::fromUtf8("text/uri-list"))) { event->acceptProposedAction(); } }