mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 17:01:08 +02:00
gui/channellist.cpp: remove switch(), use CRCInput::getNumericValue
Origin commit data
------------------
Commit: 2cb3edd0eb
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2012-04-04 (Wed, 04 Apr 2012)
This commit is contained in:
@@ -757,38 +757,7 @@ int CChannelList::show()
|
|||||||
}
|
}
|
||||||
else if (CRCInput::isNumeric(msg) && (this->historyMode || g_settings.sms_channel)) {
|
else if (CRCInput::isNumeric(msg) && (this->historyMode || g_settings.sms_channel)) {
|
||||||
if (this->historyMode) { //numeric zap
|
if (this->historyMode) { //numeric zap
|
||||||
switch (msg) {
|
selected = CRCInput::getNumericValue(msg);
|
||||||
case CRCInput::RC_0:
|
|
||||||
selected = 0;
|
|
||||||
break;
|
|
||||||
case CRCInput::RC_1:
|
|
||||||
selected = 1;
|
|
||||||
break;
|
|
||||||
case CRCInput::RC_2:
|
|
||||||
selected = 2;
|
|
||||||
break;
|
|
||||||
case CRCInput::RC_3:
|
|
||||||
selected = 3;
|
|
||||||
break;
|
|
||||||
case CRCInput::RC_4:
|
|
||||||
selected = 4;
|
|
||||||
break;
|
|
||||||
case CRCInput::RC_5:
|
|
||||||
selected = 5;
|
|
||||||
break;
|
|
||||||
case CRCInput::RC_6:
|
|
||||||
selected = 6;
|
|
||||||
break;
|
|
||||||
case CRCInput::RC_7:
|
|
||||||
selected = 7;
|
|
||||||
break;
|
|
||||||
case CRCInput::RC_8:
|
|
||||||
selected = 8;
|
|
||||||
break;
|
|
||||||
case CRCInput::RC_9:
|
|
||||||
selected = 9;
|
|
||||||
break;
|
|
||||||
};
|
|
||||||
zapOnExit = true;
|
zapOnExit = true;
|
||||||
loop = false;
|
loop = false;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user