Handle import Conflict when file is encrypted.

This commit is contained in:
Jim Norman 2006-11-10 06:10:01 +00:00
parent afed5195bb
commit 4f53c776c9

View File

@ -186,12 +186,24 @@ namespace Novell.CASA.GUI
m_objMiCasa.AggregateStore(); m_objMiCasa.AggregateStore();
} }
// check for conflicts
if (m_ss == null)
m_ss = SecretStore.getInstance();
m_scConflicts = m_ss.enumerateSecretIDs(SecretStore.SSCS_CONFLICT_KEYCHAIN);
if (m_scConflicts.Count > 0)
{
HandleConficts(m_ss, m_scConflicts);
}
else
{
if (addSecrets.GetStatus().Equals("Success")) if (addSecrets.GetStatus().Equals("Success"))
CommonGUI.DisplayMessage(Gtk.MessageType.Info, "Import complete"); CommonGUI.DisplayMessage(Gtk.MessageType.Info, "Import complete");
else else
CommonGUI.DisplayMessage(Gtk.MessageType.Info, "Failed: " + addSecrets.GetStatus()); CommonGUI.DisplayMessage(Gtk.MessageType.Info, "Failed: " + addSecrets.GetStatus());
} }
} }
}
private void on_buttonImportClose_clicked(object sender, EventArgs args) private void on_buttonImportClose_clicked(object sender, EventArgs args)
{ {