prevent dropping on lnk files

This commit is contained in:
Jonathan Jenne 2020-03-20 14:32:39 +01:00
parent 13da51251d
commit 526157b016

View File

@ -39,6 +39,16 @@ Public Class ClassFilehandle
End If
End If
End If
If filename.ToUpper.EndsWith(".LNK") Then
If USER_LANGUAGE = "de-DE" Then
MsgBox("Verknüpfungen können nicht abgelegt werden!", MsgBoxStyle.Critical, "Global Indexer")
Else
MsgBox("Shortcuts cannot be droppped!", MsgBoxStyle.Critical, "Global Indexer")
End If
Return False
End If
Return Insert_GI_File(filename, handletype)
Catch ex As Exception
MsgBox("Unexpected Error in Decide_FileHandle: " & ex.Message, MsgBoxStyle.Critical)