Author: aschnell Date: Sat Mar 7 12:30:57 2009 New Revision: 56002 URL: http://svn.opensuse.org/viewcvs/yast?rev=56002&view=rev Log: - return cancel-event when context menu is closed without selecting anything Modified: trunk/qt/src/YQContextMenu.cc Modified: trunk/qt/src/YQContextMenu.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/qt/src/YQContextMenu.cc?rev=56002&r1=56001&r2=56002&view=diff ============================================================================== --- trunk/qt/src/YQContextMenu.cc (original) +++ trunk/qt/src/YQContextMenu.cc Sat Mar 7 12:30:57 2009 @@ -130,14 +130,14 @@ QTimer::singleShot( 100, this, SLOT( slotReturnMenuHidden() ) ); } + void YQContextMenu::slotReturnMenuHidden() { - YQUI::ui()->sendEvent( new YMenuEvent( "nil" ) ); + YQUI::ui()->sendEvent( new YCancelEvent() ); } - void YQContextMenu::menuEntryActivated( QAction* action ) { @@ -200,6 +200,4 @@ } - - #include "YQContextMenu.moc" -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org