diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-08-21 15:47:30 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-08-21 15:47:30 +0200 |
commit | 08de11b198d44d5db530e0bb0898abbac4ef568d (patch) | |
tree | a174053c8fadcaa53864914bc0bfc8b55b6a96ab /src | |
parent | Merge commit 'jokerwww/mailto' (diff) | |
download | rekonq-08de11b198d44d5db530e0bb0898abbac4ef568d.tar.xz |
Some trivial fixes on GuessUrlFromString function
Diffstat (limited to 'src')
-rw-r--r-- | src/application.cpp | 4 |
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; } |