(ArchiveViewModel): allowed empty archives.

This commit is contained in:
morkt 2014-08-01 16:41:47 +04:00
parent a4570fdb04
commit ff4dba2bd2

View File

@ -141,12 +141,14 @@ namespace GARbro.GUI
{
IEnumerable<Entry> dir = Source;
if (!string.IsNullOrEmpty (root_path))
{
dir = from entry in dir
where entry.Name.StartsWith (root_path+m_delimiter)
select entry;
if (!dir.Any())
{
throw new DirectoryNotFoundException (string.Format ("{1}: {0}", guiStrings.MsgDirectoryNotFound, root_path));
if (!dir.Any())
{
throw new DirectoryNotFoundException (string.Format ("{1}: {0}", guiStrings.MsgDirectoryNotFound, root_path));
}
}
m_suppress_notification = true;
try