diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2011-11-03 16:25:34 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2011-11-03 16:25:34 +0100 |
commit | bec0deb0925091d2b26038deed730c72af9c0a37 (patch) | |
tree | 0db8d5ced1763084ff645e88f3bb22bea8e1c44c /src/tabbar.cpp | |
parent | also take 'application/futuresplash' mimetype in account for clickToFlash (diff) | |
download | rekonq-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.cpp | 6 |
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; } |