kdeplasma-addons: do not report error twice from audioplayercontrol runner

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2022-12-15 12:28:33 +02:00
parent 858b107742
commit f0cc5d6925

View file

@ -30,7 +30,6 @@
#include <QtDBus/qdbuspendingcall.h>
#include <QtDBus/QDBusMessage>
#include <KMessageBox>
#include <KDebug>
#include <KIcon>
#include <KRun>
@ -247,9 +246,7 @@ bool AudioPlayerControlRunner::startPlayer()
}
if (!KRun::run(m_player, KUrl::List(), nullptr)) {
// We couldn't start the player
KMessageBox::error(nullptr, i18n("%1 not found", m_player),
i18n("%1 was not found so the runner is unable to work.", m_player));
// NOTE: KRun::run() shows message box in case of error
return false;
}