summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/querydesign/TableWindowTitle.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'dbaccess/source/ui/querydesign/TableWindowTitle.cxx')
-rw-r--r--dbaccess/source/ui/querydesign/TableWindowTitle.cxx15
1 files changed, 6 insertions, 9 deletions
diff --git a/dbaccess/source/ui/querydesign/TableWindowTitle.cxx b/dbaccess/source/ui/querydesign/TableWindowTitle.cxx
index 0c5ca6a9064e..2cb3efea4629 100644
--- a/dbaccess/source/ui/querydesign/TableWindowTitle.cxx
+++ b/dbaccess/source/ui/querydesign/TableWindowTitle.cxx
@@ -106,16 +106,13 @@ void OTableWindowTitle::RequestHelp( const HelpEvent& rHEvt )
void OTableWindowTitle::Command( const CommandEvent& rEvt )
{
- switch( rEvt.GetCommand() )
+ if ( rEvt.GetCommand() == CommandEventId::ContextMenu )
{
- case COMMAND_CONTEXTMENU:
- {
- GrabFocus();
- if ( m_pTabWin )
- m_pTabWin->Command( rEvt );
- else
- Control::Command(rEvt);
- }
+ GrabFocus();
+ if ( m_pTabWin )
+ m_pTabWin->Command( rEvt );
+ else
+ Control::Command(rEvt);
}
}