From a4c1ae0997b26ec1b38131f2983e62cbb7e82a21 Mon Sep 17 00:00:00 2001 From: RĂ¼diger Timm Date: Wed, 30 Jan 2008 07:54:05 +0000 Subject: INTEGRATION: CWS dba24d (1.43.2); FILE MERGED 2007/11/22 11:48:56 oj 1.43.2.1: #i83805# check if enbled before setting title for add tables dlg --- dbaccess/source/ui/querydesign/JoinController.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'dbaccess/source/ui/querydesign/JoinController.cxx') diff --git a/dbaccess/source/ui/querydesign/JoinController.cxx b/dbaccess/source/ui/querydesign/JoinController.cxx index b72ebc3c2fe3..39daefbe496e 100644 --- a/dbaccess/source/ui/querydesign/JoinController.cxx +++ b/dbaccess/source/ui/querydesign/JoinController.cxx @@ -4,9 +4,9 @@ * * $RCSfile: JoinController.cxx,v $ * - * $Revision: 1.43 $ + * $Revision: 1.44 $ * - * last change: $Author: hr $ $Date: 2007-11-01 15:27:20 $ + * last change: $Author: rt $ $Date: 2008-01-30 08:54:05 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -338,7 +338,8 @@ FeatureState OJoinController::GetState(sal_uInt16 _nId) const aReturn.bEnabled = ( getView() != NULL ) && const_cast< OJoinController* >( this )->getJoinView()->getTableView()->IsAddAllowed(); aReturn.bChecked = aReturn.bEnabled && m_pAddTableDialog != NULL && m_pAddTableDialog->IsVisible() ; - aReturn.sTitle = OAddTableDlg::getDialogTitleForContext( impl_getDialogContext() ); + if ( aReturn.bEnabled ) + aReturn.sTitle = OAddTableDlg::getDialogTitleForContext( impl_getDialogContext() ); break; default: -- cgit