Tag: cws_dev300_dba30b User: fs Date: 2008-03-17 13:38:05+0000 Modified: dba/dbaccess/source/ui/app/AppController.cxx
Log: #i87132# properly determine the state of SID_DB_APP_EDIT_SQL_VIEW in multi-selection case File Changes: Directory: /dba/dbaccess/source/ui/app/ ======================================= File [changed]: AppController.cxx Url: http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/app/AppController.cxx?r1=1.56.4.1&r2=1.56.4.2 Delta lines: +11 -6 -------------------- --- AppController.cxx 2008-03-16 14:04:59+0000 1.56.4.1 +++ AppController.cxx 2008-03-17 13:38:02+0000 1.56.4.2 @@ -4,9 +4,9 @@ * * $RCSfile: AppController.cxx,v $ * - * $Revision: 1.56.4.1 $ + * $Revision: 1.56.4.2 $ * - * last change: $Author: fs $ $Date: 2008/03/16 14:04:59 $ + * last change: $Author: fs $ $Date: 2008/03/17 13:38:02 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -803,10 +803,15 @@ { ::std::vector< ::rtl::OUString > aSelected; getSelectionElementNames( aSelected ); - OSL_ENSURE( aSelected.size() == 1, "OApplicationController::GetState: inconsistency!" ); - if ( aSelected.size() == 1 ) - if ( impl_isAlterableView_nothrow( aSelected[0] ) ) - aReturn.bEnabled = sal_True; + bool bAlterableViews = true; + for ( ::std::vector< ::rtl::OUString >::const_iterator selectedName = aSelected.begin(); + bAlterableViews && ( selectedName != aSelected.end() ) ; + ++selectedName + ) + { + bAlterableViews &= impl_isAlterableView_nothrow( *selectedName ); + } + aReturn.bEnabled = bAlterableViews; } break; default: --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
