Changeset View
Changeset View
Standalone View
Standalone View
src/widgets/krun_win.cpp
Show First 20 Lines • Show All 84 Lines • ▼ Show 20 Line(s) | |||||
85 | bool KRun::KRunPrivate::displayNativeOpenWithDialog(const QList<QUrl> &lst, QWidget *window, bool tempFiles, | 85 | bool KRun::KRunPrivate::displayNativeOpenWithDialog(const QList<QUrl> &lst, QWidget *window, bool tempFiles, | ||
86 | const QString &suggestedFileName, const QByteArray &asn) | 86 | const QString &suggestedFileName, const QByteArray &asn) | ||
87 | { | 87 | { | ||
88 | Q_UNUSED(tempFiles); | 88 | Q_UNUSED(tempFiles); | ||
89 | Q_UNUSED(suggestedFileName); | 89 | Q_UNUSED(suggestedFileName); | ||
90 | Q_UNUSED(asn); | 90 | Q_UNUSED(asn); | ||
91 | 91 | | |||
92 | QStringList fnames; | 92 | QStringList fnames; | ||
93 | foreach (const QUrl &url, lst) { | 93 | for (const QUrl &url : lst) { | ||
94 | fnames += QDir::toNativeSeparators(url.path()); | 94 | fnames += QDir::toNativeSeparators(url.path()); | ||
95 | } | 95 | } | ||
96 | int result = runDll(window, | 96 | int result = runDll(window, | ||
97 | QLatin1String("shell32.dll"), | 97 | QLatin1String("shell32.dll"), | ||
98 | "OpenAs_RunDLLW", | 98 | "OpenAs_RunDLLW", | ||
99 | fnames.join(QLatin1Char(' '))); | 99 | fnames.join(QLatin1Char(' '))); | ||
100 | return result == 0; | 100 | return result == 0; | ||
101 | } | 101 | } |