diff --git a/PowerEditor/src/NppIO.cpp b/PowerEditor/src/NppIO.cpp index 4e189dead..9b6107e42 100644 --- a/PowerEditor/src/NppIO.cpp +++ b/PowerEditor/src/NppIO.cpp @@ -1651,7 +1651,10 @@ bool Notepad_plus::fileSave(BufferID id) { if (buf->isUntitled()) { - return fileSaveAs(bufferID); + bool isOK = fileSaveAs(bufferID); + if (isOK) + buf->clearTabCreatedTimeString(); + return isOK; } const NppGUI & nppgui = (NppParameters::getInstance()).getNppGUI(); diff --git a/PowerEditor/src/ScintillaComponent/Buffer.h b/PowerEditor/src/ScintillaComponent/Buffer.h index cbb122f9b..c7af851b5 100644 --- a/PowerEditor/src/ScintillaComponent/Buffer.h +++ b/PowerEditor/src/ScintillaComponent/Buffer.h @@ -292,6 +292,12 @@ public: _tabCreatedTimeString = getTimeString(now); } } + void clearTabCreatedTimeString() { + if (_currentStatus != DOC_UNNAMED) + { + _tabCreatedTimeString = L""; + } + } size_t docLength() const { assert(_pManager != nullptr);