Skip to content

Commit

Permalink
Merge pull request #366 from Wallby/main
Browse files Browse the repository at this point in the history
Fixed document removed popup upon moving a tab from one window to another caused by comparison of full path name with 8.3 filename

closes #324
  • Loading branch information
stefankueng authored Jan 31, 2024
2 parents 5695a18 + 116e571 commit 37f59ea
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3814,9 +3814,11 @@ bool CMainWindow::OpenFileAs(const std::wstring& tempPath, const std::wstring& r
return false;
}

std::wstring filepath = CPathUtils::GetLongPathname(tempPath);

// Get the id for the document we just loaded,
// it'll currently have a temporary name.
auto docID = m_docManager.GetIdForPath(tempPath);
auto docID = m_docManager.GetIdForPath(filepath);
auto& doc = m_docManager.GetModDocumentFromID(docID);
doc.m_path = CPathUtils::GetLongPathname(realpath);
doc.m_bIsDirty = bModified;
Expand Down

0 comments on commit 37f59ea

Please sign in to comment.