summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsr55 <[email protected]>2012-05-20 23:20:30 +0000
committersr55 <[email protected]>2012-05-20 23:20:30 +0000
commit23858a7c3663f632a785b61845b68e8f8c160f2c (patch)
treec2cee7c602b1a3c12f0cfcf89c5c06f7c738eea3
parentfe91119c41ca4a9598117a4b6c9e13821c9bff3e (diff)
WinGui: Allow folders to be dropped on the main window.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4693 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r--win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs
index 9feef3555..71bf4c022 100644
--- a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs
+++ b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs
@@ -1049,7 +1049,7 @@ namespace HandBrakeWPF.ViewModels
if (e.Data.GetDataPresent(DataFormats.FileDrop))
{
string[] fileNames = e.Data.GetData(DataFormats.FileDrop, true) as string[];
- if (fileNames != null && fileNames.Any() && File.Exists(fileNames[0]))
+ if (fileNames != null && fileNames.Any() && (File.Exists(fileNames[0]) || Directory.Exists(fileNames[0])) )
{
this.StartScan(fileNames[0], 0);
}