mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
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
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user