Browse Source

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 năm trước cách đây
mục cha
commit
28700362a3

+ 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();