diff --git a/c_gui/CasaMain.cs b/c_gui/CasaMain.cs index 7c2f5264..56e973e5 100644 --- a/c_gui/CasaMain.cs +++ b/c_gui/CasaMain.cs @@ -301,8 +301,8 @@ public class CasaMain if(entryMasterPassword3.Text != "" && (entryMasterPassword3.Text == entryMasterPassword4.Text)) { miCASA.SetMasterPassword(0, entryMasterPassword3.Text); - dialogLogin.Destroy(); MiCasaRequestReply.Send(MiCasaRequestReply.VERB_UNLOCK_STORE, entryMasterPassword3.Text); + dialogLogin.Destroy(); InitializeGUI(); } else @@ -316,8 +316,8 @@ public class CasaMain { if( 0 == miCASA.SetMasterPassword(0, entryMasterPassword3.Text) ) { - dialogLogin.Destroy(); MiCasaRequestReply.Send(MiCasaRequestReply.VERB_UNLOCK_STORE, entryMasterPassword3.Text); + dialogLogin.Destroy(); InitializeGUI(); } else @@ -963,11 +963,18 @@ public class CasaMain Glade.XML gxmlTemp = new Glade.XML (Common.GladeFile, "dialogPreferences", null); gxmlTemp.Autoconnect (this); - dialogPreferences.TransientFor = windowMain; + dialogPreferences.SetPosition(Gtk.WindowPosition.CenterOnParent); + dialogPreferences.TransientFor = windowMain; checkbuttonFirefox.Active=Common.IS_FIREFOX; checkbuttonMozilla.Active=Common.IS_MOZILLA; checkbuttonGnomeKeyring.Active=Common.IS_GNOMEKEYRING; checkbuttonKdeWallet.Active=Common.IS_KDEWALLET; + + if (Common.IS_WINDOWS) + { + checkbuttonGnomeKeyring.Sensitive = false; + checkbuttonKdeWallet.Sensitive = false; + } Logger.DbgLog("GUI:CasaMain.Preferences() - END"); }