Bug 164949. Enable/Disable menu item when Firefox tab is selected.
This commit is contained in:
parent
e9676d12af
commit
7684bc7aee
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Apr 13 08:43:10 MST 2006 - jnorman@novell.com
|
||||
- Bug 164949. Fix 'New Secret' menu option when FireFox tab is selected.
|
||||
Comment out fix for 164181 (see below). SessionId is not implemented
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Apr 13 07:01:10 MST 2006 - jnorman@novell.com
|
||||
- Bug 164181. Prevent multiple instances of CASA Manager on windows.
|
||||
|
@ -770,7 +770,10 @@ namespace Novell.CASA.GUI
|
||||
|
||||
switch(notebookStores.CurrentPage)
|
||||
{
|
||||
case Common.STORE_MICASA:
|
||||
case Common.STORE_MICASA:
|
||||
|
||||
mmiNew.Sensitive = true;
|
||||
|
||||
if( 0 != objMiCasa.tvSecretIDMiCasa.Selection.CountSelectedRows() )
|
||||
{
|
||||
mmiNew.Sensitive = mmiNewKey.Sensitive = true;
|
||||
@ -796,6 +799,9 @@ namespace Novell.CASA.GUI
|
||||
break;
|
||||
|
||||
case Common.STORE_KDEWALLET:
|
||||
|
||||
mmiNew.Sensitive = true;
|
||||
|
||||
if( 0 != objKdeWallet.tvSecretIDKdeWallet.Selection.CountSelectedRows() )
|
||||
{
|
||||
mmiNew.Sensitive = mmiNewKey.Sensitive = true;
|
||||
@ -807,6 +813,9 @@ namespace Novell.CASA.GUI
|
||||
break;
|
||||
|
||||
case Common.STORE_GNOMEKEYRING:
|
||||
|
||||
mmiNew.Sensitive = true;
|
||||
|
||||
if( 0 != objGnomeKeyring.tvSecretIDGnomeKeyring.Selection.CountSelectedRows() )
|
||||
{
|
||||
mmiNew.Sensitive = mmiNewKey.Sensitive = true;
|
||||
|
@ -259,22 +259,22 @@ public class Common
|
||||
|
||||
}
|
||||
else if( true == IS_WINDOWS )
|
||||
{
|
||||
|
||||
Process current = Process.GetCurrentProcess();
|
||||
Process[] p = System.Diagnostics.Process.GetProcessesByName("CASAManager");
|
||||
int i = 0;
|
||||
foreach (Process proc in p)
|
||||
{
|
||||
Console.WriteLine(proc.SessionId);
|
||||
if (proc.SessionId == current.SessionId)
|
||||
i++;
|
||||
}
|
||||
|
||||
if (i > 1)
|
||||
{
|
||||
#if DOTNET2
|
||||
Process current = Process.GetCurrentProcess();
|
||||
Process[] p = System.Diagnostics.Process.GetProcessesByName("CASAManager");
|
||||
int i = 0;
|
||||
foreach (Process proc in p)
|
||||
{
|
||||
if (proc.SessionId == current.SessionId)
|
||||
i++;
|
||||
}
|
||||
|
||||
if (i > 1)
|
||||
bRet = true;
|
||||
else
|
||||
bRet = false;
|
||||
bRet = false;
|
||||
#endif
|
||||
}
|
||||
return bRet;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user