Author: gs Date: Mon Oct 22 11:53:39 2007 New Revision: 41506 URL: http://svn.opensuse.org/viewcvs/yast?rev=41506&view=rev Log: check item pointer Modified: branches/tmp/sh/mod-ui/ncurses/src/NCPopupMenu.cc branches/tmp/sh/mod-ui/ncurses/src/README_mod-ui Modified: branches/tmp/sh/mod-ui/ncurses/src/NCPopupMenu.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/NCPopupMenu.cc?rev=41506&r1=41505&r2=41506&view=diff ============================================================================== --- branches/tmp/sh/mod-ui/ncurses/src/NCPopupMenu.cc (original) +++ branches/tmp/sh/mod-ui/ncurses/src/NCPopupMenu.cc Mon Oct 22 11:53:39 2007 @@ -80,8 +80,7 @@ case KEY_RIGHT: { YMenuItem * item = menu->findItem( startIndex + getCurrentItem() ); - YUI_CHECK_PTR( item ); - if ( item->hasChildren() ) + if ( item && item->hasChildren() ) ret = NCursesEvent::button; break; } Modified: branches/tmp/sh/mod-ui/ncurses/src/README_mod-ui URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/README_mod-ui?rev=41506&r1=41505&r2=41506&view=diff ============================================================================== --- branches/tmp/sh/mod-ui/ncurses/src/README_mod-ui (original) +++ branches/tmp/sh/mod-ui/ncurses/src/README_mod-ui Mon Oct 22 11:53:39 2007 @@ -122,7 +122,8 @@ ------------------------ what about default button? FIXME: only dummy rebuildMenuTree() added - + current item after closing submenu with KEY_LEFT not set correctly + NCPkgPopupDiskspace ------------------- -TODO: call addItem() for partition table (NCPkgPopupDiskSpace.cc line 181) \ No newline at end of file +TODO: addItem() for partition table not yet called (NCPkgPopupDiskSpace.cc line 181) -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org