Commit ea1815be authored by Albert Astals Cid's avatar Albert Astals Cid Committed by Albert Astals Cid

Also note the modified status (*) on the tab name

parent eea5127e
......@@ -503,8 +503,15 @@ void Shell::setCaption( const QString &caption )
if ( activeTab >= 0 && activeTab < m_tabs.size() )
{
KParts::ReadWritePart* const activePart = m_tabs[activeTab].part;
if ( activePart->isModified() )
QString tabCaption = activePart->url().fileName();
if ( activePart->isModified() ) {
modified = true;
if ( !tabCaption.isEmpty() ) {
tabCaption.append( QStringLiteral( " *" ) );
}
}
m_tabWidget->setTabText( activeTab, tabCaption );
}
setCaption( caption, 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