Commit 5040376f authored by Robert Knight's avatar Robert Knight
Browse files

Deprecated KRun::shellQuote() -> KShell::quoteArg()

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=678270
parent 267a30dc
......@@ -29,7 +29,7 @@
#include <KInputDialog>
#include <KLocale>
#include <KMenu>
#include <KRun>
#include <kshell.h>
#include <KToggleAction>
#include <KUrl>
#include <KXMLGUIFactory>
......@@ -262,7 +262,7 @@ void SessionController::openUrl( const KUrl& url )
if ( url.isLocalFile() )
{
QString path = url.toLocalFile();
KRun::shellQuote(path);
KShell::quoteArg(path);
_session->emulation()->sendText("cd " + path + '\r');
}
......
......@@ -51,7 +51,7 @@
#include <QtGui/QToolTip>
// KDE
#include <KRun>
#include <kshell.h>
#include <KCursor>
#include <kdebug.h>
#include <KLocale>
......@@ -2665,7 +2665,7 @@ void TerminalDisplay::dropEvent(QDropEvent* event)
_lnAction->setEnabled( false );
}
if (urllist.count()>1)
KRun::shellQuote(tmp);
KShell::quoteArg(tmp);
_dropText += tmp;
}
......@@ -2696,7 +2696,7 @@ void TerminalDisplay::drop_menu_activated(QAction* action)
{
case paste:
if (_dndFileCount==1)
KRun::shellQuote(_dropText);
KShell::quoteArg(_dropText);
emit sendStringToEmu(_dropText.toLocal8Bit());
activateWindow();
break;
......@@ -2712,7 +2712,7 @@ void TerminalDisplay::drop_menu_activated(QAction* action)
_dropText = url.directory( KUrl::ObeyTrailingSlash ); // remove filename
}
}
KRun::shellQuote(_dropText);
KShell::quoteArg(_dropText);
emit sendStringToEmu(_dropText.toLocal8Bit());
emit sendStringToEmu("\n");
activateWindow();
......@@ -2729,7 +2729,7 @@ void TerminalDisplay::drop_menu_activated(QAction* action)
}
if (item>cd && item<=mv) {
if (_dndFileCount==1)
KRun::shellQuote(_dropText);
KShell::quoteArg(_dropText);
emit sendStringToEmu(_dropText.toLocal8Bit());
emit sendStringToEmu(" .\n");
activateWindow();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment