diff options
| author | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2009-10-25 23:35:54 +0100 |
|---|---|---|
| committer | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2009-10-25 23:35:54 +0100 |
| commit | 448f54bc4c0c07b607b22efc96238f9f9f1c26d1 (patch) | |
| tree | f34032aed1c7d882fc72d7a04bde3cb15399e005 | |
| parent | 8f37e3b223749c6eb1a81bafe6d0b8895f98d6e5 (diff) | |
| download | tuxcmd-448f54bc4c0c07b607b22efc96238f9f9f1c26d1.tar.xz | |
Fix invalid typecast
| -rw-r--r-- | UMain.pas | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1723,7 +1723,7 @@ begin if ((Ext = 'SFV') or (Ext = 'MD5')) and (Engine is TLocalTreeEngine) then miVerifyChecksumsClick(Self) else if ((Ext = 'CRC') or (Ext = '001')) and (Engine is TLocalTreeEngine) then miMergeFilesClick(Self) else if not HandleVFSArchive(LeftPanel, IncludeTrailingPathDelimiter(Engine.Path) + String(Data^.FName), String(Data^.FName), '/') then - if (not ConfUseURI) or ((Engine is TVFSEngine) and TVFSEngine(Engine).ArchiveMode) + if (not ConfUseURI) or (not (Engine is TVFSEngine)) or ((Engine is TVFSEngine) and TVFSEngine(Engine).ArchiveMode) then RunFile(IncludeTrailingPathDelimiter(Engine.Path) + String(Data^.FName), Engine, -1) else RunFile(IncludeTrailingPathDelimiter((Engine as TVFSEngine).GetPathURI) + String(Data^.FName), Engine, -1); end; @@ -4496,7 +4496,7 @@ begin Engine := RightPanelEngine; AListView := RightListView; end; - if ConfUseURI and ((Engine is TVFSEngine) and (not (Engine as TVFSEngine).ArchiveMode)) + if ConfUseURI and (Engine is TVFSEngine) and (not (Engine as TVFSEngine).ArchiveMode) then FileName := IncludeTrailingPathDelimiter((Engine as TVFSEngine).GetPathURI) else FileName := IncludeTrailingPathDelimiter(Engine.Path); if Assigned(AListView.Selected) and Assigned(AListView.Selected.Data) and (not PDataItem(AListView.Selected.Data)^.UpDir) |
