mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 03:02:35 +01:00
[Compare] - Return if directory is dropped.
This commit is contained in:
parent
5ff5a3c11a
commit
a4c2da46e5
@ -855,8 +855,14 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
string.Empty, MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
return;
|
||||
}
|
||||
|
||||
string filePath = files[0];
|
||||
if (FileUtil.IsDirectory(filePath))
|
||||
{
|
||||
MessageBox.Show(Configuration.Settings.Language.Main.ErrorDirectoryDropNotAllowed,
|
||||
string.Empty, MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
return;
|
||||
}
|
||||
|
||||
var listExt = new List<string>();
|
||||
foreach (var s in Utilities.GetOpenDialogFilter().Split(new[] { '*' }, StringSplitOptions.RemoveEmptyEntries))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user