clean NCurse::List class a bit and remove a few redundant functions

This commit is contained in:
Andrzej Rybczak
2009-09-19 01:18:41 +02:00
parent 2f971147b1
commit 3bdb798852
9 changed files with 62 additions and 107 deletions

View File

@@ -1549,10 +1549,12 @@ int main(int argc, char *argv[])
{
if (myScreen->allowsSelection())
{
if (myScreen->GetList()->Deselect())
{
ShowMessage("Items deselected!");
}
List *mList = myScreen->GetList();
if (!mList->hasSelected())
continue;
for (size_t i = 0; i < mList->Size(); ++i)
mList->Select(i, 0);
ShowMessage("Items deselected!");
}
}
else if (Keypressed(input, Key.AddSelected))