From d1c8038d855b3c28703840915aa60422a7b8e7bc Mon Sep 17 00:00:00 2001 From: morkt Date: Wed, 28 Oct 2015 23:10:43 +0400 Subject: [PATCH] fixed recent files navigation. --- MainWindow.xaml.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/MainWindow.xaml.cs b/MainWindow.xaml.cs index 6df8556a..decf93b8 100644 --- a/MainWindow.xaml.cs +++ b/MainWindow.xaml.cs @@ -746,11 +746,13 @@ namespace GARbro.GUI private void OpenFile (string filename) { - if (filename == CurrentPath) + if (filename == CurrentPath || string.IsNullOrEmpty (filename)) return; try { - PushViewModel (GetNewViewModel (filename)); + VFS.FullPath = new string[] { filename, "" }; + var vm = new DirectoryViewModel (VFS.FullPath, VFS.GetFiles(), VFS.IsVirtual); + PushViewModel (vm); if (null != VFS.CurrentArchive) SetStatusText (VFS.CurrentArchive.Description); lv_SelectItem (0);