From 23858a7c3663f632a785b61845b68e8f8c160f2c Mon Sep 17 00:00:00 2001 From: sr55 Date: Sun, 20 May 2012 23:20:30 +0000 Subject: 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 --- win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'win/CS') 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); } -- cgit v1.2.3