Fixed update of the project name in the status line in case the name
of the project contains dots.
This commit is contained in:
parent
537c3714f2
commit
cd1a445c83
1 changed files with 3 additions and 1 deletions
|
@ -143,7 +143,9 @@ void MainFrame::update_title()
|
||||||
wxString title = wxEmptyString;
|
wxString title = wxEmptyString;
|
||||||
if (m_plater != nullptr)
|
if (m_plater != nullptr)
|
||||||
{
|
{
|
||||||
wxString project = from_path(into_path(m_plater->get_project_filename()).stem());
|
// m_plater->get_project_filename() produces file name including path, but excluding extension.
|
||||||
|
// Don't try to remove the extension, it would remove part of the file name after the last dot!
|
||||||
|
wxString project = from_path(into_path(m_plater->get_project_filename()).filename());
|
||||||
if (!project.empty())
|
if (!project.empty())
|
||||||
title += (project + " - ");
|
title += (project + " - ");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue