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