[Bug 80852] Confusion with tab name on save-as
Jens Dagerbo
jens.dagerbo at swipnet.se
Tue May 4 01:26:48 UTC 2004
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=80852
jens.dagerbo swipnet se changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Additional Comments From jens.dagerbo swipnet se 2004-05-03 22:04 -------
CVS commit by dagerbo:
make "save as" change the tab caption correctly again
CCMAIL: 80852-done bugs kde org
M +6 -5 newmainwindow.cpp 1.14
--- kdevelop/src/newmainwindow.cpp #1.13:1.14
@ -584,11 +584,12 @ void NewMainWindow::slotPartURLChanged(
kdDebug() << k_funcinfo << endl;
- if ( !ro_part || !ro_part->widget() || !ro_part->widget()->parentWidget() ) return;
-
- KMdiChildView * childView = dynamic_cast<KMdiChildView*>( ro_part->widget()->parentWidget() );
+ if ( QWidget * widget = EditorProxy::getInstance()->topWidgetForPart( ro_part ) )
+ {
+ KMdiChildView * childView = dynamic_cast<KMdiChildView*>( widget->parentWidget() );
if ( childView )
{
childView->setMDICaption( ro_part->url().fileName() );
}
+ }
}
More information about the KDevelop-devel
mailing list