diff options
author | Rüdiger Timm <rt@openoffice.org> | 2004-11-26 13:52:31 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2004-11-26 13:52:31 +0000 |
commit | 99b06d3b609986d8ecb764eb02ce38b79f23a50a (patch) | |
tree | 718e5aa25b6316a81e14b3de07caaf703edc7df9 /xmlsecurity/source | |
parent | e3870bf73a7a6f0daeddb9853570492b5b871928 (diff) |
INTEGRATION: CWS xmlsec06 (1.17.2); FILE MERGED
2004/09/21 09:26:40 pb 1.17.2.1: fix: #i33584# remove a TrustedPath from SecureOptions after removed from ListBox
Diffstat (limited to 'xmlsecurity/source')
-rw-r--r-- | xmlsecurity/source/dialogs/macrosecurity.cxx | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/xmlsecurity/source/dialogs/macrosecurity.cxx b/xmlsecurity/source/dialogs/macrosecurity.cxx index 8bebd3e1718c..41ca3b479640 100644 --- a/xmlsecurity/source/dialogs/macrosecurity.cxx +++ b/xmlsecurity/source/dialogs/macrosecurity.cxx @@ -2,9 +2,9 @@ * * $RCSfile: macrosecurity.cxx,v $ * - * $Revision: 1.17 $ + * $Revision: 1.18 $ * - * last change: $Author: mt $ $Date: 2004-08-04 06:13:56 $ + * last change: $Author: rt $ $Date: 2004-11-26 14:52:30 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -299,6 +299,16 @@ IMPL_LINK( MacroSecurityTrustedSourcesTP, RemoveLocPBHdl, void*, EMTYARG ) if( nSel != LISTBOX_ENTRY_NOTFOUND ) { maTrustFileLocLB.RemoveEntry( nSel ); + // --> PB 2004-09-21 #i33584# + // after remove an entry, select another one if exists + USHORT nNewCount = maTrustFileLocLB.GetEntryCount(); + if ( nNewCount > 0 ) + { + if ( nSel >= nNewCount ) + nSel = nNewCount - 1; + maTrustFileLocLB.SelectEntryPos( nSel ); + } + // <-- ImplCheckButtons(); } @@ -404,6 +414,12 @@ void MacroSecurityTrustedSourcesTP::ClosePage( void ) mpDlg->maSecOptions.SetSecureURLs( aSecureURLs ); } + // --> PB 2004-09-21 #i33584# + // don't forget to remove the old saved SecureURLs + else + mpDlg->maSecOptions.SetSecureURLs( cssu::Sequence< rtl::OUString >() ); + // <-- mpDlg->maSecOptions.SetTrustedAuthors( maTrustedAuthors ); } + |