diff options
Diffstat (limited to 'smb4k/core/smb4kpreviewer.cpp')
-rw-r--r-- | smb4k/core/smb4kpreviewer.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/smb4k/core/smb4kpreviewer.cpp b/smb4k/core/smb4kpreviewer.cpp index 1ddff6f..2e2876d 100644 --- a/smb4k/core/smb4kpreviewer.cpp +++ b/smb4k/core/smb4kpreviewer.cpp @@ -139,13 +139,13 @@ void Smb4KPreviewer::timerEvent( TQTimerEvent * ) // (b) Do not pass the path unquoted, or you'll get a NT_STATUS_OBJECT_NAME_NOT_FOUND // error message in the case the path is empty. TQString command; - command.append( TQString( "smbclient //%1/%2 " ).tqarg( KProcess::quote( m_item->host() ), KProcess::quote( m_item->share() ) ) ); - command.append( TQString( " -d1 -W %1 -D %2 " ).tqarg( KProcess::quote( m_item->workgroup() ), KProcess::quote( m_item->path() ) ) ); + command.append( TQString( "smbclient //%1/%2 " ).arg( KProcess::quote( m_item->host() ), KProcess::quote( m_item->share() ) ) ); + command.append( TQString( " -d1 -W %1 -D %2 " ).arg( KProcess::quote( m_item->workgroup() ), KProcess::quote( m_item->path() ) ) ); command.append( " -c \"ls\" " ); if ( !m_item->ip().isEmpty() ) { - command.append( TQString( " -I %1 " ).tqarg( m_item->ip() ) ); + command.append( TQString( " -I %1 " ).arg( m_item->ip() ) ); } command.append( optionsHandler()->smbclientOptions( "//"+m_item->host()+"/"+m_item->share() ) ); @@ -154,7 +154,7 @@ void Smb4KPreviewer::timerEvent( TQTimerEvent * ) if ( !auth->user().isEmpty() ) { - command.append( TQString( " -U %1" ).tqarg( KProcess::quote( auth->user() ) ) ); + command.append( TQString( " -U %1" ).arg( KProcess::quote( auth->user() ) ) ); if ( !auth->password().isEmpty() ) { |