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