--- main.cpp.orig 2007-05-11 11:18:18.000000000 +0100 +++ main.cpp 2007-05-11 11:27:12.000000000 +0100 @@ -451,15 +451,21 @@ // first of all find out, if this is a frontend only host... bool frontendOnly = gContext->IsFrontendOnly(); + // how do you want to quit today? + int exitMenuStyle = gContext->GetNumSetting("OverrideExitMenu", 0); + QString title = QObject::tr("Do you really want to exit MythTV?"); DialogBox diag(gContext->GetMainWindow(), title); diag.AddButton(QObject::tr("No")); - diag.AddButton(QObject::tr("Yes, Exit now")); - if (frontendOnly) + if (exitMenuStyle < 2) + diag.AddButton(QObject::tr("Yes, Exit now")); + if ((exitMenuStyle == 0 && frontendOnly) || (exitMenuStyle == 2)) diag.AddButton(QObject::tr("Yes, Exit and Shutdown")); int result = diag.exec(); + if ((exitMenuStyle == 2) && (result == 2)) + result = 3; switch (result) { case 1: return NO_EXIT;