Author: gs
Date: Thu Nov 15 14:10:44 2007
New Revision: 42077
URL: http://svn.opensuse.org/viewcvs/yast?rev=42077&view=rev
Log:
selectItem() fixed
Modified:
branches/tmp/sh/mod-ui/ncurses/src/NCSelectionBox.cc
Modified: branches/tmp/sh/mod-ui/ncurses/src/NCSelectionBox.cc
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/NCSelectionBox.cc?rev=42077&r1=42076&r2=42077&view=diff
==============================================================================
--- branches/tmp/sh/mod-ui/ncurses/src/NCSelectionBox.cc (original)
+++ branches/tmp/sh/mod-ui/ncurses/src/NCSelectionBox.cc Thu Nov 15 14:10:44 2007
@@ -151,15 +151,13 @@
//
void NCSelectionBox::selectItem( YItem *item, bool selected )
{
- NCDBG << "Select item (YItem *, bool) called" << endl;
YSelectionBox::selectItem( item, selected );
+
myPad()->ScrlLine( selected ? item->index() : -1 );
}
void NCSelectionBox::selectItem( int index )
{
- NCDBG << "Select item (index) called" << endl;
-
YSelectionBox::deselectAllItems();
YItem * item = YSelectionBox::itemAt( index );
@@ -169,21 +167,7 @@
NCMIL << "selectItem: " << item->label().c_str() << endl;
item->setSelected( true );
}
- else
- YUI_THROW( YUIException( "Can't find selected item" ) );
-}
-
-#if 0
-void NCSelectionBox::itemAdded( const YCPString& str, int index, bool selected )
-{
- vector