neutrino/channellist: avoid double code

Origin commit data
------------------
Branch: ni/coolstream
Commit: 08f150e54d
Author: vanhofen <vanhofen@gmx.de>
Date: 2021-03-14 (Sun, 14 Mar 2021)

Origin message was:
------------------
- neutrino/channellist: avoid double code

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2021-03-14 10:08:27 +01:00
parent 1631d9607a
commit 78de67fe24
2 changed files with 26 additions and 40 deletions

View File

@@ -3367,22 +3367,17 @@ void CNeutrinoApp::RealRun()
}
fclose(f);
}
if (!bm12) {
if (!bm12)
ShowMsg(LOCALE_MESSAGEBOX_ERROR, LOCALE_BOXMODE12_NOT_ACTIVATED, CMsgBox::mbrOk, CMsgBox::mbOk, NEUTRINO_ICON_ERROR);
} else {
else
#endif
{
t_channel_id pip_channel_id = CZapit::getInstance()->GetPipChannelID();
if (pip_channel_id)
g_Zapit->stopPip();
else
StartPip(CZapit::getInstance()->GetCurrentChannelID());
}
#else
t_channel_id pip_channel_id = CZapit::getInstance()->GetPipChannelID();
if (pip_channel_id)
g_Zapit->stopPip();
else
StartPip(CZapit::getInstance()->GetCurrentChannelID());
#endif
}
else if (msg == (neutrino_msg_t) g_settings.key_pip_setup) {
CPipSetup pipsetup;