diff --git a/PowerEditor/src/NppIO.cpp b/PowerEditor/src/NppIO.cpp index 4e189dead..c893d9059 100644 --- a/PowerEditor/src/NppIO.cpp +++ b/PowerEditor/src/NppIO.cpp @@ -1888,8 +1888,7 @@ bool Notepad_plus::fileSaveAs(BufferID id, bool isSaveCopy) } fDlg.setTitle(localizedTitle.c_str()); - const wstring checkboxLabel = _nativeLangSpeaker.getLocalizedStrFromID("file-save-assign-type", - L"&Append extension"); + const wstring checkboxLabel = _nativeLangSpeaker.getLocalizedStrFromID("file-save-assign-type", L"&Append extension"); fDlg.enableFileTypeCheckbox(checkboxLabel, !defaultAllTypes); // Disable file autodetection before opening save dialog to prevent use-after-delete bug. diff --git a/PowerEditor/src/NppNotification.cpp b/PowerEditor/src/NppNotification.cpp index cbae3a3a7..8503b6033 100644 --- a/PowerEditor/src/NppNotification.cpp +++ b/PowerEditor/src/NppNotification.cpp @@ -1005,12 +1005,16 @@ BOOL Notepad_plus::notify(SCNotification *notification) tipTmp = buf->getFullPathName(); - wstring tabCreatedTime = buf->tabCreatedTimeString(); - if (!tabCreatedTime.empty()) + + if (buf->isUntitled()) { - tipTmp += L"\r"; - tipTmp += tabCreatedTime; - SendMessage(lpttt->hdr.hwndFrom, TTM_SETMAXTIPWIDTH, 0, 200); + wstring tabCreatedTime = buf->tabCreatedTimeString(); + if (!tabCreatedTime.empty()) + { + tipTmp += L"\r"; + tipTmp += tabCreatedTime; + SendMessage(lpttt->hdr.hwndFrom, TTM_SETMAXTIPWIDTH, 0, 200); + } } else {