From d3f997a1216eaf6ac856fc0df808f71ab5f8b141 Mon Sep 17 00:00:00 2001 From: nowrep Date: Tue, 17 May 2011 21:54:13 +0200 Subject: [PATCH] Fixed problem with urls containings extra characters dropped to navigation bar --- src/navigation/locationbar.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/navigation/locationbar.cpp b/src/navigation/locationbar.cpp index fe84b9f4f..cc7fe9015 100644 --- a/src/navigation/locationbar.cpp +++ b/src/navigation/locationbar.cpp @@ -226,7 +226,7 @@ void LocationBar::dropEvent(QDropEvent* event) if (event->mimeData()->hasUrls()) { QUrl dropUrl = event->mimeData()->urls().at(0); if (WebView::isUrlValid(dropUrl)) { - setText(dropUrl.toEncoded()); + setText(dropUrl.toString()); p_QupZilla->loadAddress(dropUrl); QLineEdit::focusOutEvent(new QFocusEvent(QFocusEvent::FocusOut)); return; @@ -235,7 +235,7 @@ void LocationBar::dropEvent(QDropEvent* event) if (event->mimeData()->hasText()) { QUrl dropUrl = QUrl(event->mimeData()->text()); if (WebView::isUrlValid(dropUrl)) { - setText(dropUrl.toEncoded()); + setText(dropUrl.toString()); p_QupZilla->loadAddress(dropUrl); QLineEdit::focusOutEvent(new QFocusEvent(QFocusEvent::FocusOut)); return;