diff --git a/mythtv/programs/mythfrontend/main.cpp b/mythtv/programs/mythfrontend/main.cpp index 8487ed63239..d114c10dd41 100644 --- a/mythtv/programs/mythfrontend/main.cpp +++ b/mythtv/programs/mythfrontend/main.cpp @@ -70,6 +70,7 @@ using namespace std; #include "mythmainwindow.h" #include "mythcontrols.h" #include "mythuihelper.h" +#include "mythuinotificationcenter.h" #include "mythdirs.h" #include "mythdb.h" #include "backendconnectionmanager.h" @@ -117,6 +118,8 @@ void handleSIGUSR2(void); static bool gLoaded = false; #endif +static const QString _Location = QObject::tr("MythFrontend"); + namespace { class RunSettingsCompletion : public QObject @@ -1126,7 +1129,7 @@ static int internal_play_media(const QString &mrl, const QString &plot, if (pginfo->IsVideoDVD()) { DVDInfo *dvd = new DVDInfo(pginfo->GetPlaybackURL()); - if (dvd && dvd->IsValid()) + if (dvd->IsValid()) { QString name; QString serialid; @@ -1138,8 +1141,9 @@ static int internal_play_media(const QString &mrl, const QString &plot, } else { - if (dvd) - delete dvd; + ShowNotificationError(QObject::tr("DVD Failure"), + _Location, dvd->GetLastError()); + delete dvd; delete pginfo; return res; }