Commit c508d2df authored by Frédéric Larue's avatar Frédéric Larue

Bug fixed in the update of the main window title while saving an existing project to a new folder.

parent 9c1b220b
......@@ -1253,6 +1253,7 @@ void UIMainWindow::saveCurrentProject()
std::cout << "Saving project <B>" << project->Name().toStdString() << "</B> to file <B>" << file.toStdString() << "</B> failed." << std::endl;
}
updateWindowTitle();
updateRecentListEntry( file );
}
}
......@@ -1881,6 +1882,12 @@ void UIMainWindow::currentProjectChanged()
// The window title is updated according to the new current project name.
updateWindowTitle();
}
void UIMainWindow::updateWindowTitle()
{
QString title;
if( getCurrentProject() )
{
......
......@@ -160,6 +160,7 @@ private slots:
void showThemeSettingsDialog();
public slots:
void updateWindowTitle();
void toolExecutionFinished( bool needUpdate );
bool newProject();
void openProject();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment