From bec0deb0925091d2b26038deed730c72af9c0a37 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Thu, 3 Nov 2011 16:25:34 +0100 Subject: Let rekonq save file remotely Andreas's comment was helpful: rekonq COULD save file remotely, but for same strange reason, KFileDialog::getSaveFileName() could not select remote files. Switching to getSaveUrl seems fixing the problem Ah... also a style clean up here. Sorry for the merged commit... BUG: 242675 --- src/tabbar.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/tabbar.cpp') diff --git a/src/tabbar.cpp b/src/tabbar.cpp index 74c339e0..6e9b781b 100644 --- a/src/tabbar.cpp +++ b/src/tabbar.cpp @@ -489,8 +489,8 @@ void TabBar::dropEvent(QDropEvent* event) int urlCount = event->mimeData()->urls().count(); if (urlCount > 1) { - Q_FOREACH (const QUrl url, event->mimeData()->urls()) - rApp->loadUrl(url, Rekonq::NewTab); + Q_FOREACH(const QUrl url, event->mimeData()->urls()) + rApp->loadUrl(url, Rekonq::NewTab); } else rApp->loadUrl(event->mimeData()->urls().first(), Rekonq::NewFocusedTab); @@ -525,7 +525,7 @@ bool TabBar::isURLValid(const QString &url) if (editedURL.startsWith("http://") || editedURL.startsWith("https://") || editedURL.startsWith("ftp://")) editedURL = editedURL.remove(QRegExp("(http|https|ftp)://")); if (editedURL.contains('.') && editedURL.indexOf('.') > 0 && editedURL.indexOf('.') < editedURL.length() && !editedURL.trimmed().contains(" ") - && QUrl::fromUserInput(editedURL).isValid()) + && QUrl::fromUserInput(editedURL).isValid()) isValid = true; return isValid; } -- cgit v1.2.1