Skip to content

Commit

Permalink
Restore previous backend disconnection message now that the notificat…
Browse files Browse the repository at this point in the history
…ion theme can handle longer description text.

There's an extra space in it that could have been removed. Little bit less work to translate new strings.
  • Loading branch information
jyavenard committed Jul 9, 2013
1 parent 318e525 commit 952ef9b
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions mythtv/libs/libmyth/mythcontext.cpp
Expand Up @@ -1025,9 +1025,18 @@ void MythContextPrivate::ShowConnectionFailurePopup(bool persistent)

m_lastCheck = now.addMSecs(5000); // don't refresh notification more than every 5s

QString description = (persistent) ?
QObject::tr(
"The connection to the master backend "
"server has gone away for some reason. "
"Is it running?") :
QObject::tr(
"Could not connect to the master backend server. Is "
"it running? Is the IP address set for it in "
"mythtv-setup correct?");

QString message = QObject::tr("Could not connect to master backend");
MythErrorNotification n(message, _Location,
QObject::tr("Is it running? Check IP address set in mythtv-setup"));
MythErrorNotification n(message, _Location, description);
n.SetId(m_registration);
n.SetParent(this);
GetNotificationCenter()->Queue(n);
Expand Down

0 comments on commit 952ef9b

Please sign in to comment.