Changeset View
Changeset View
Standalone View
Standalone View
src/widgets/krun.cpp
Show First 20 Lines • Show All 825 Lines • ▼ Show 20 Line(s) | 822 | { | |||
---|---|---|---|---|---|
826 | } | 826 | } | ||
827 | 827 | | |||
828 | const QStringList args = KShell::splitArgs(cmd); | 828 | const QStringList args = KShell::splitArgs(cmd); | ||
829 | if (args.isEmpty()) { | 829 | if (args.isEmpty()) { | ||
830 | qCWarning(KIO_WIDGETS) << "Command could not be parsed."; | 830 | qCWarning(KIO_WIDGETS) << "Command could not be parsed."; | ||
831 | return false; | 831 | return false; | ||
832 | } | 832 | } | ||
833 | 833 | | |||
834 | const QString bin = args.first(); | 834 | const QString &bin = args.first(); | ||
835 | return KRun::runCommand(cmd, bin, bin /*iconName*/, window, QByteArray(), workingDirectory); | 835 | return KRun::runCommand(cmd, bin, bin /*iconName*/, window, QByteArray(), workingDirectory); | ||
836 | } | 836 | } | ||
837 | 837 | | |||
838 | bool KRun::runCommand(const QString &cmd, const QString &execName, const QString &iconName, QWidget *window, const QByteArray &asn) | 838 | bool KRun::runCommand(const QString &cmd, const QString &execName, const QString &iconName, QWidget *window, const QByteArray &asn) | ||
839 | { | 839 | { | ||
840 | return runCommand(cmd, execName, iconName, window, asn, QString()); | 840 | return runCommand(cmd, execName, iconName, window, asn, QString()); | ||
841 | } | 841 | } | ||
842 | 842 | | |||
▲ Show 20 Lines • Show All 938 Lines • Show Last 20 Lines |