summaryrefslogtreecommitdiff
path: root/src/application.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-08-21 15:47:30 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-08-21 15:47:30 +0200
commit08de11b198d44d5db530e0bb0898abbac4ef568d (patch)
treea174053c8fadcaa53864914bc0bfc8b55b6a96ab /src/application.cpp
parentMerge commit 'jokerwww/mailto' (diff)
downloadrekonq-08de11b198d44d5db530e0bb0898abbac4ef568d.tar.xz
Some trivial fixes on GuessUrlFromString function
Diffstat (limited to 'src/application.cpp')
-rw-r--r--src/application.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/application.cpp b/src/application.cpp
index c072b9f7..711e3fb8 100644
--- a/src/application.cpp
+++ b/src/application.cpp
@@ -220,7 +220,7 @@ KUrl Application::guessUrlFromString(const QString &string)
}
else // Might be a shorturl - try to detect the schema.
{
- int dotIndex = urlStr.indexOf(QLatin1Char('.'));
+ int dotIndex = urlStr.indexOf(QLatin1Char(':'));
if (dotIndex != -1)
{
@@ -237,7 +237,7 @@ KUrl Application::guessUrlFromString(const QString &string)
}
// Fall back to QUrl's own tolerant parser.
- KUrl url = KUrl(string);
+ KUrl url = KUrl(urlStr);
return url;
}