Handle 'Access Denied' casa on importing Secrets
This commit is contained in:
parent
818c0796dd
commit
36292f46b7
@ -259,6 +259,8 @@ namespace Novell.CASA.GUI
|
||||
|
||||
for (int i=0; i<dirs.Length; i++)
|
||||
{
|
||||
if (dirs[i].Name.StartsWith(".")) continue;
|
||||
|
||||
ts.AppendValues(new Gdk.Pixbuf (Common.IMAGE_PATH + "folder.png"), dirs[i].Name, "", "File folder");
|
||||
}
|
||||
|
||||
|
@ -58,6 +58,8 @@ namespace Novell.CASA.GUI
|
||||
if (File.Exists(sFile))
|
||||
{
|
||||
|
||||
try
|
||||
{
|
||||
// let's read it
|
||||
FileStream fs = new FileStream(sFile, FileMode.Open);
|
||||
buffer = new byte[fs.Length];
|
||||
@ -80,6 +82,11 @@ namespace Novell.CASA.GUI
|
||||
GetMasterPasswordUsedForImport();
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
CommonGUI.DisplayMessage(Gtk.MessageType.Error, e.Message);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user