Fix crash after txt not found on TP; Not ask about recording in case of auto timeshift

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@735 e54a6e83-5905-42d5-8d5c-058d10e6a962


Origin commit data
------------------
Branch: ni/coolstream
Commit: 474c348fa8
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2010-08-21 (Sat, 21 Aug 2010)



------------------
This commit was generated by Migit
This commit is contained in:
[CST] Focus
2010-08-21 10:11:15 +00:00
parent 86f199fbbe
commit d4703179f0
2 changed files with 11 additions and 3 deletions

View File

@@ -3698,9 +3698,15 @@ extern time_t timer_minutes;
void CNeutrinoApp::ExitRun(const bool /*write_si*/, int retcode)
{
if (!recordingstatus ||
ShowLocalizedMessage(LOCALE_MESSAGEBOX_INFO, LOCALE_SHUTDOWN_RECODING_QUERY, CMessageBox::mbrNo, CMessageBox::mbYes | CMessageBox::mbNo, NULL, 450, 30, true) == CMessageBox::mbrYes)
{
bool do_shutdown = true;
if(recordingstatus && !autoshift) {
do_shutdown =
(ShowLocalizedMessage(LOCALE_MESSAGEBOX_INFO, LOCALE_SHUTDOWN_RECODING_QUERY, CMessageBox::mbrNo,
CMessageBox::mbYes | CMessageBox::mbNo, NULL, 450, 30, true) == CMessageBox::mbrYes);
}
if(do_shutdown) {
if(recordingstatus) {
CVCRControl::getInstance()->Stop();
g_Timerd->stopTimerEvent(recording_id);