瀏覽代碼

Removing code to cancel inline file renaming before a command, which is irrelevant since we do not allow commands while editing

Source commit: bfc6500a92534517474f4ad1ecbbd2785106cfeb
Martin Prikryl 6 年之前
父節點
當前提交
28700362a3
共有 3 個文件被更改,包括 0 次插入15 次删除
  1. 0 4
      source/forms/CustomScpExplorer.cpp
  2. 0 10
      source/forms/ScpCommander.cpp
  3. 0 1
      source/forms/ScpCommander.h

+ 0 - 4
source/forms/CustomScpExplorer.cpp

@@ -8702,10 +8702,6 @@ bool __fastcall TCustomScpExplorerForm::GetLastCustomCommand(bool OnFocused,
 //---------------------------------------------------------------------------
 void __fastcall TCustomScpExplorerForm::BeforeAction()
 {
-  if (RemoteDirView->ItemFocused != NULL)
-  {
-    RemoteDirView->ItemFocused->CancelEdit();
-  }
   ResetIncrementalSearch();
 }
 //---------------------------------------------------------------------------

+ 0 - 10
source/forms/ScpCommander.cpp

@@ -1829,16 +1829,6 @@ void __fastcall TScpCommanderForm::GetTransferPresetAutoSelectData(
   Data.LocalDirectory = LocalDirView->PathName;
 }
 //---------------------------------------------------------------------------
-void __fastcall TScpCommanderForm::BeforeAction()
-{
-  TCustomScpExplorerForm::BeforeAction();
-
-  if (LocalDirView->ItemFocused != NULL)
-  {
-    LocalDirView->ItemFocused->CancelEdit();
-  }
-}
-//---------------------------------------------------------------------------
 void __fastcall TScpCommanderForm::RemoteDirViewPathChange(TCustomDirView * /*Sender*/)
 {
   UpdateRemotePathComboBox(false);

+ 0 - 1
source/forms/ScpCommander.h

@@ -611,7 +611,6 @@ public:
   virtual void __fastcall GoToTree();
   virtual void __fastcall OpenConsole(UnicodeString Command = L"");
   virtual UnicodeString __fastcall PathForCaption();
-  virtual void __fastcall BeforeAction();
   virtual void __fastcall HomeDirectory(TOperationSide Side);
   virtual void __fastcall HistoryGo(TOperationSide Side, int Index);
   virtual void __fastcall DisplaySystemContextMenu();