mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-02 18:31:12 +02:00
Merge branch 'master' of https://github.com/tuxbox-neutrino/gui-neutrino into ni/tuxbox
Conflicts:
src/neutrino.cpp
Origin commit data
------------------
Commit: 470a8b62dd
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-08-23 (Wed, 23 Aug 2017)
This commit is contained in:
@@ -278,12 +278,17 @@ void CStringInput::keyDownPressed()
|
||||
{
|
||||
int npos = 0;
|
||||
std::string tmp_value = *valueString;
|
||||
for(int count=0;count<(int)strlen(validchars);count++)
|
||||
const int validchar_len = (int)strlen(validchars);
|
||||
for(int count=0;count<validchar_len;count++)
|
||||
if(valueString->at(selected)==validchars[count])
|
||||
npos = count;
|
||||
npos--;
|
||||
if(npos<0)
|
||||
npos = strlen(validchars)-1;
|
||||
if(npos<0){
|
||||
if(validchar_len > 0)
|
||||
npos = validchar_len-1;
|
||||
else
|
||||
npos = 0;
|
||||
}
|
||||
valueString->at(selected)=validchars[npos];
|
||||
|
||||
int current_value = atoi(*valueString);
|
||||
|
Reference in New Issue
Block a user