summaryrefslogtreecommitdiff
path: root/src/application.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-12-18 20:28:43 +0100
committerAndrea Diamantini <adjam7@gmail.com>2009-12-18 20:28:43 +0100
commitd09e7314a81210337b89bd3763c60ac3b2c2eefa (patch)
treec4a89c3fe2b0b645a93e738b12b4720c157b1940 /src/application.cpp
parentRonny's patch about selecting previous tab if active one is closed (diff)
downloadrekonq-d09e7314a81210337b89bd3763c60ac3b2c2eefa.tar.xz
native ftp handling & file one ported to kde functions.
One step to be feature complete (at least for 0.4): I need to know if an ftp url represent a file or a dir..
Diffstat (limited to 'src/application.cpp')
-rw-r--r--src/application.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/application.cpp b/src/application.cpp
index 28d998f3..8b8234b5 100644
--- a/src/application.cpp
+++ b/src/application.cpp
@@ -348,7 +348,10 @@ void Application::loadUrl(const KUrl& url, const Rekonq::OpenType& type)
// ------------------- END WARNING --------------------------------------
// we are sure of the url now, let's add it to history
- historyManager()->addHistoryEntry( loadingUrl.prettyUrl() );
+ // anyway we store here just http sites because local and ftp ones are
+ // added trough the protocol handler and the other are ignored
+ if( url.protocol() == QLatin1String("http") )
+ historyManager()->addHistoryEntry( loadingUrl.prettyUrl() );
if (!ReKonfig::openTabsBack())
{