Author: kmachalkova Date: Wed May 6 11:56:46 2009 New Revision: 57078 URL: http://svn.opensuse.org/viewcvs/yast?rev=57078&view=rev Log: slight speed optimization (do not select again if the current item is the same) Modified: trunk/ncurses/src/NCTable.cc Modified: trunk/ncurses/src/NCTable.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCTable.cc?rev=57078&r1=57077&r2=57078&view=diff ============================================================================== --- trunk/ncurses/src/NCTable.cc (original) +++ trunk/ncurses/src/NCTable.cc Wed May 6 11:56:46 2009 @@ -517,13 +517,14 @@ } - if ( notify() && immediateMode() && citem != getCurrentItem() ) + if ( citem != getCurrentItem() ) { - ret = NCursesEvent::SelectionChanged; - } + if ( notify() && immediateMode() ) + ret = NCursesEvent::SelectionChanged; - if ( !multiselect ) - selectCurrentItem(); + if ( !multiselect ) + selectCurrentItem(); + } return ret; } -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org