1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 01:22:10 +01:00

Fixed problem with urls containings extra characters dropped to

navigation bar
This commit is contained in:
nowrep 2011-05-17 21:54:13 +02:00
parent 8ab4dc75df
commit d3f997a121

View File

@ -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;