diff options
author | Oliver Bolte <obo@openoffice.org> | 2006-10-12 12:34:34 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2006-10-12 12:34:34 +0000 |
commit | 16b69b11f9c2c846ade5f2e548d115b0c2eeac0a (patch) | |
tree | 8d3401e8352792462338753da973284d16f412ee /dbaccess/source/ui/app/AppControllerGen.cxx | |
parent | 0b90a3c7ecd6683b945bbeca771a1e225a95f8d1 (diff) |
INTEGRATION: CWS sb59 (1.20.4); FILE MERGED
2006/08/29 11:44:26 sb 1.20.4.1: #i67487# Made code warning-free (wntmsci10).
Diffstat (limited to 'dbaccess/source/ui/app/AppControllerGen.cxx')
-rw-r--r-- | dbaccess/source/ui/app/AppControllerGen.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/dbaccess/source/ui/app/AppControllerGen.cxx b/dbaccess/source/ui/app/AppControllerGen.cxx index 61a757ffa..906fee2ff 100644 --- a/dbaccess/source/ui/app/AppControllerGen.cxx +++ b/dbaccess/source/ui/app/AppControllerGen.cxx @@ -4,9 +4,9 @@ * * $RCSfile: AppControllerGen.cxx,v $ * - * $Revision: 1.22 $ + * $Revision: 1.23 $ * - * last change: $Author: kz $ $Date: 2006-10-05 12:59:46 $ + * last change: $Author: obo $ $Date: 2006-10-12 13:34:34 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -619,7 +619,8 @@ sal_Bool OApplicationController::isRenameDeleteAllowed(ElementType _eType,sal_Bo try { Reference< XNameAccess > xContainer = const_cast<OApplicationController*>(this)->getElements(eType); - if ( (bEnabled = (xContainer.is() && xContainer->hasByName(*aList.begin()))) ) + bEnabled = (xContainer.is() && xContainer->hasByName(*aList.begin())); + if ( bEnabled ) bEnabled = Reference<XRename>(xContainer->getByName(*aList.begin()),UNO_QUERY).is(); } catch(Exception&) |