Linux: Fixed crash when drag and dropping a file contained in a compressed file
This commit is contained in:
parent
da91d36c8f
commit
fe8125e58d
1 changed files with 1 additions and 1 deletions
|
@ -1150,7 +1150,7 @@ namespace Mesen.GUI.Forms
|
|||
private void frmMain_DragEnter(object sender, DragEventArgs e)
|
||||
{
|
||||
try {
|
||||
if(e.Data.GetDataPresent(DataFormats.FileDrop)) {
|
||||
if(e.Data != null && e.Data.GetDataPresent(DataFormats.FileDrop)) {
|
||||
e.Effect = DragDropEffects.Copy;
|
||||
} else {
|
||||
InteropEmu.DisplayMessage("Error", "Unsupported operation.");
|
||||
|
|
Loading…
Add table
Reference in a new issue