From 2aa47e32191a812fb678848030e693c2ea4322b0 Mon Sep 17 00:00:00 2001 From: Don Ho Date: Thu, 31 Oct 2024 00:12:37 +0100 Subject: [PATCH] Revert "Fix saved file from new empty doc keeping created time tip issue" This reverts commit 93ecbb004c8a216d17a8b940572a388f010c94ee. --- PowerEditor/src/NppIO.cpp | 5 +---- PowerEditor/src/ScintillaComponent/Buffer.h | 6 ------ 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/PowerEditor/src/NppIO.cpp b/PowerEditor/src/NppIO.cpp index 9b6107e42..4e189dead 100644 --- a/PowerEditor/src/NppIO.cpp +++ b/PowerEditor/src/NppIO.cpp @@ -1651,10 +1651,7 @@ bool Notepad_plus::fileSave(BufferID id) { if (buf->isUntitled()) { - bool isOK = fileSaveAs(bufferID); - if (isOK) - buf->clearTabCreatedTimeString(); - return isOK; + return fileSaveAs(bufferID); } const NppGUI & nppgui = (NppParameters::getInstance()).getNppGUI(); diff --git a/PowerEditor/src/ScintillaComponent/Buffer.h b/PowerEditor/src/ScintillaComponent/Buffer.h index c7af851b5..cbb122f9b 100644 --- a/PowerEditor/src/ScintillaComponent/Buffer.h +++ b/PowerEditor/src/ScintillaComponent/Buffer.h @@ -292,12 +292,6 @@ public: _tabCreatedTimeString = getTimeString(now); } } - void clearTabCreatedTimeString() { - if (_currentStatus != DOC_UNNAMED) - { - _tabCreatedTimeString = L""; - } - } size_t docLength() const { assert(_pManager != nullptr);