summaryrefslogtreecommitdiffstats
path: root/kdecore/kshell.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kdecore/kshell.cpp')
-rw-r--r--kdecore/kshell.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/kdecore/kshell.cpp b/kdecore/kshell.cpp
index 9ca5dc9b7..9a9aacfbe 100644
--- a/kdecore/kshell.cpp
+++ b/kdecore/kshell.cpp
@@ -355,7 +355,7 @@ TQString KShell::joinArgsDQ( const TQStringList &args )
TQString KShell::tildeExpand( const TQString &fname )
{
if (fname[0] == (QChar)'~') {
- int pos = fname.tqfind( '/' );
+ int pos = fname.find( '/' );
if (pos < 0)
return homeDir( TQConstString( fname.tqunicode() + 1, fname.length() - 1 ).string() );
TQString ret = homeDir( TQConstString( fname.tqunicode() + 1, pos - 1 ).string() );