Bug 133386 fixes

This commit is contained in:
Jim Norman 2006-02-14 00:38:32 +00:00
parent f7cc163293
commit 96b2637e43
2 changed files with 6 additions and 5 deletions

View File

@ -1158,9 +1158,9 @@ namespace Novell.CASA.GUI
dialogPreferences.TransientFor = windowMain;
checkbuttonFirefox.Active=Common.IS_FIREFOX;
checkbuttonMozilla.Active=Common.IS_MOZILLA;
checkbuttonGnomeKeyring.Active=Common.IS_GNOMEKEYRING;
checkbuttonKdeWallet.Active=Common.IS_KDEWALLET;
checkbuttonGnomeKeyring.Active=checkbuttonGnomeKeyring.Sensitive=Common.IS_GNOMEKEYRING;
checkbuttonKdeWallet.Active=checkbuttonKdeWallet.Sensitive=Common.IS_KDEWALLET;
if (Common.IS_WINDOWS)
{
checkbuttonGnomeKeyring.Sensitive = false;

View File

@ -26,6 +26,7 @@ namespace Novell.CASA.GUI {
using System;
using System.Collections;
using Novell.CASA.CASAPolicy;
using Novell.CASA.DataEngines;
using Novell.CASA;
@ -77,14 +78,14 @@ namespace Novell.CASA.GUI {
while( enumerator.MoveNext() )
{
if( ((Novell.CASA.CASAPolicy.Store)(enumerator.Current)).StoreName.Equals(Common.STORENAME_KDEWALLET) )
if( ((Novell.CASA.CASAPolicy.Store)(enumerator.Current)).StoreName.Equals(Common.STORENAME_KDEWALLET) && true == IsStoreAvailable(Common.STORENAME_KDEWALLET))
{
Common.IS_KDEWALLET = true;
storeNameKwallet = ((Novell.CASA.CASAPolicy.Store)(enumerator.Current)).StoreName;
storeIdKwallet[kWalletStoreCounter++] = ((Novell.CASA.CASAPolicy.Store)(enumerator.Current)).StoreId;
Logger.DbgLog("GUI:StorePolicyInterface.Init() - miCASA policy = " + Common.IS_MICASA);
}
else if(((Novell.CASA.CASAPolicy.Store)(enumerator.Current)).StoreName.Equals(Common.STORENAME_GNOMEKEYRING))
else if(((Novell.CASA.CASAPolicy.Store)(enumerator.Current)).StoreName.Equals(Common.STORENAME_GNOMEKEYRING) && true == IsStoreAvailable(Common.STORENAME_GNOMEKEYRING))
{
Common.IS_GNOMEKEYRING=true;
storeNameGkeyring=((Novell.CASA.CASAPolicy.Store)(enumerator.Current)).StoreName;