Browse Source

Revert "Fix saved file from new empty doc keeping created time tip issue"

This reverts commit 93ecbb004c.
pull/15753/head
Don Ho 3 weeks ago
parent
commit
2aa47e3219
  1. 5
      PowerEditor/src/NppIO.cpp
  2. 6
      PowerEditor/src/ScintillaComponent/Buffer.h

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

6
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);

Loading…
Cancel
Save