summaryrefslogtreecommitdiff
path: root/src/tabbar.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2011-11-03 16:25:34 +0100
committerAndrea Diamantini <adjam7@gmail.com>2011-11-03 16:25:34 +0100
commitbec0deb0925091d2b26038deed730c72af9c0a37 (patch)
tree0db8d5ced1763084ff645e88f3bb22bea8e1c44c /src/tabbar.cpp
parentalso take 'application/futuresplash' mimetype in account for clickToFlash (diff)
downloadrekonq-bec0deb0925091d2b26038deed730c72af9c0a37.tar.xz
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
Diffstat (limited to 'src/tabbar.cpp')
-rw-r--r--src/tabbar.cpp6
1 files changed, 3 insertions, 3 deletions
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;
}