--warning unused variable

This commit is contained in:
Aleix Pol 2014-07-10 20:28:01 +02:00
parent f75eb2d984
commit 4b222c5ef6

View File

@ -23,6 +23,7 @@
#include <QHash> #include <QHash>
#include <QFile> #include <QFile>
#include <QDebug>
#include <qstandardpaths.h> #include <qstandardpaths.h>
#include <klocalizedstring.h> #include <klocalizedstring.h>
@ -116,6 +117,9 @@ void AssociatedApplicationManager::run(Plasma::Applet *applet)
if (d->applicationNames.contains(applet)) { if (d->applicationNames.contains(applet)) {
#if !PLASMA_NO_KIO #if !PLASMA_NO_KIO
bool success = KRun::run(d->applicationNames.value(applet), d->urlLists.value(applet), 0); bool success = KRun::run(d->applicationNames.value(applet), d->urlLists.value(applet), 0);
if (!success) {
qWarning() << "couldn't run" << d->applicationNames.value(applet) << d->urlLists.value(applet);
}
#else #else
QString execCommand = d->applicationNames.value(applet); QString execCommand = d->applicationNames.value(applet);