Ticket #8004: backendconnectionmanager.cpp_r23487.diff
| File backendconnectionmanager.cpp_r23487.diff, 1.3 KB (added by , 16 years ago) |
|---|
-
programs/mythfrontend/backendconnectionmanager.cpp
6 6 #include <QTimer> 7 7 8 8 #include "mythcontext.h" 9 #include "mythdialogbox.h" 10 #include "mythscreenstack.h" 11 #include "mythmainwindow.h" 9 12 #include "exitcodes.h" 10 13 #include "util.h" // for checkTimeZone() 11 14 #include "backendconnectionmanager.h" … … 82 85 VERBOSE(VB_IMPORTANT, 83 86 "Unable to run with invalid time settings. " 84 87 "Exiting."); 85 qApp->exit(FRONTEND_EXIT_INVALID_TIMEZONE); 88 // adding friendlier message on popup 89 MythScreenStack *ss = GetMythMainWindow()->GetStack("popup stack"); 90 MythConfirmationDialog *mcd = new MythConfirmationDialog(ss, tr("Time Zone Mismatch, Please review your logs for further details. Exiting."), false); 91 if (!mcd->Create()) 92 qApp->exit(FRONTEND_EXIT_INVALID_TIMEZONE); 93 QObject::connect( mcd, SIGNAL( haveResult(bool) ), qApp, SLOT( quit() ) ); 94 mcd->SetVisible(true); 95 ss->AddScreen(mcd); 86 96 } 87 97 m_first_time = false; 88 98 }
