summaryrefslogtreecommitdiff
path: root/src/application.cpp
diff options
context:
space:
mode:
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;
}