[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdebase/apps/konqueror/src
From: David Faure <faure () kde ! org>
Date: 2010-10-15 20:04:30
Message-ID: 20101015200430.35999AC897 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1186319 by dfaure:
Forwardport 1186317: '~' also denotes the beginning of a local path, like '/', so \
don't prepend http://www. in the completion offers. BUG 90005.
M +2 -2 konqmainwindow.cpp
--- trunk/KDE/kdebase/apps/konqueror/src/konqmainwindow.cpp #1186318:1186319
@@ -5161,10 +5161,10 @@
//
// prepend http://www. or http:// if there's no protocol in 's'
-// used only when there are no completion matches
+// This is used only when there are no completion matches
static QString hp_tryPrepend( const QString& s )
{
- if( s.isEmpty() || s[ 0 ] == '/' )
+ if (s.isEmpty() || s[0] == QLatin1Char('/') || s[0] == QLatin1Char('~'))
return QString();
for( int pos = 0;
pos < s.length() - 2; // 4 = ://x
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic