Skip to content

Commit

Permalink
tmp files fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alabuzhev committed Jul 3, 2016
1 parent 0ff786e commit 3e93540
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions far/changelog
@@ -1,3 +1,7 @@
drkns 03.07.2016 21:15:27 +0200 - build 4736

1. Временные файлы могли удаляться раньше времени.

drkns 03.07.2016 19:11:29 +0200 - build 4735

1. При определенных условиях мог падать поиск во вьювере.
Expand Down
5 changes: 3 additions & 2 deletions far/filelist.cpp
Expand Up @@ -2624,8 +2624,9 @@ void FileList::ProcessEnter(bool EnableExec,bool SeparateWindow,bool EnableAssoc
}
else
{
PluginHandle* OpenedPlugin = nullptr;
const auto PluginMode = m_PanelMode == panel_mode::PLUGIN_PANEL && !Global->CtrlObject->Plugins->UseFarCommand(m_hPlugin, PLUGIN_FARGETFILE);
SCOPE_EXIT{ if (PluginMode) DeleteFileWithFolder(strFileName); };
SCOPE_EXIT{ if (PluginMode && !OpenedPlugin) DeleteFileWithFolder(strFileName); };

if (PluginMode)
{
Expand Down Expand Up @@ -2656,7 +2657,7 @@ void FileList::ProcessEnter(bool EnableExec,bool SeparateWindow,bool EnableAssoc

const auto IsItExecutable = IsExecutable(strFileName);

if (!IsItExecutable && !SeparateWindow && OpenFilePlugin(&strFileName, TRUE, Type))
if (!IsItExecutable && !SeparateWindow && (OpenedPlugin = OpenFilePlugin(&strFileName, TRUE, Type)) != nullptr)
return;

if (IsItExecutable || SeparateWindow || Global->Opt->UseRegisteredTypes)
Expand Down
2 changes: 1 addition & 1 deletion far/vbuild.m4
@@ -1 +1 @@
m4_define(BUILD,4735)m4_dnl
m4_define(BUILD,4736)m4_dnl

0 comments on commit 3e93540

Please sign in to comment.