Ticket #8004: backendconnectionmanager.cpp_23424_diff

File backendconnectionmanager.cpp_23424_diff, 1.1 KB (added by Johnny Walker <johnnyjboss@…>, 14 years ago)

svn diff of changes in mythtv-trunk/mythtv/programs/mythfrontend/backendconnectionmanager.cpp

Line 
1Index: backendconnectionmanager.cpp
2===================================================================
3--- backendconnectionmanager.cpp        (revision 23424)
4+++ backendconnectionmanager.cpp        (working copy)
5@@ -82,7 +82,14 @@
6                 VERBOSE(VB_IMPORTANT,
7                         "Unable to run with invalid time settings. "
8                         "Exiting.");
9-                qApp->exit(FRONTEND_EXIT_INVALID_TIMEZONE);
10+               // adding friendlier message on popup
11+               MythScreenStack *ss = GetMythMainWindow()->GetStack("popup stack");
12+               MythConfirmationDialog *mcd = new MythConfirmationDialog(ss, tr("Time Zone Mismatch, Please review your logs for further details. Exiting."), false);
13+               if (!mcd->Create())
14+                       qApp->exit(FRONTEND_EXIT_INVALID_TIMEZONE);
15+               QObject::connect( mcd, SIGNAL( haveResult(bool) ), qApp, SLOT( quit() ) );
16+               mcd->SetVisible(true);
17+               ss->AddScreen(mcd);
18             }
19             m_first_time = false;
20         }
21