summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/querydesign/JoinController.cxx
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2008-01-30 07:54:05 +0000
committerRüdiger Timm <rt@openoffice.org>2008-01-30 07:54:05 +0000
commita4c1ae0997b26ec1b38131f2983e62cbb7e82a21 (patch)
tree249bdca8d99cdc65bae08c44cbfd80e0bc2082e5 /dbaccess/source/ui/querydesign/JoinController.cxx
parent51aac403027238a2e43b09243190da98c035e5ca (diff)
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
Diffstat (limited to 'dbaccess/source/ui/querydesign/JoinController.cxx')
-rw-r--r--dbaccess/source/ui/querydesign/JoinController.cxx7
1 files changed, 4 insertions, 3 deletions
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: