Commit 95e1a51d authored by Boudewijn Rempt's avatar Boudewijn Rempt

Try harder to have a sensible caption for the titlebar

parent f7bb78c2
......@@ -827,7 +827,7 @@ void KisMainWindow::updateCaption()
}
void KisMainWindow::updateCaption(const QString & caption, bool modified)
void KisMainWindow::updateCaption(const QString &caption, bool modified)
{
QString versionString = KritaVersionWrapper::versionString(true);
......@@ -845,11 +845,11 @@ void KisMainWindow::updateCaption(const QString & caption, bool modified)
d->mdiArea->activeSubWindow()->setWindowModified(modified);
}
#if defined(KRITA_ALPHA) || defined (KRITA_BETA) || defined (KRITA_RC)
setWindowTitle(QString("%1: %2").arg(versionString).arg(title));
#else
setWindowTitle(title);
#endif
//#if defined(KRITA_ALPHA) || defined (KRITA_BETA) || defined (KRITA_RC)
// setWindowTitle(QString("%1: %2").arg(versionString).arg(title));
//#else
// setWindowTitle(title);
//#endif
setWindowModified(modified);
......
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