mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-25 12:44:46 +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);
|
string.Empty, MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
string filePath = files[0];
|
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>();
|
var listExt = new List<string>();
|
||||||
foreach (var s in Utilities.GetOpenDialogFilter().Split(new[] { '*' }, StringSplitOptions.RemoveEmptyEntries))
|
foreach (var s in Utilities.GetOpenDialogFilter().Split(new[] { '*' }, StringSplitOptions.RemoveEmptyEntries))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user