mirror of
https://bitbucket.org/smil3y/kde-extraapps.git
synced 2025-02-23 18:32:53 +00:00
kdeplasma-addons: do not report error twice from audioplayercontrol runner
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
858b107742
commit
f0cc5d6925
1 changed files with 1 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue