Summary: | Confusion with tab name on save-as | ||
---|---|---|---|
Product: | [Applications] kdevelop | Reporter: | Jon Smirl <jonsmirl> |
Component: | general | Assignee: | KDevelop Developers <kdevelop-devel> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version First Reported In: | git master | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Jon Smirl
2004-05-03 20:20:46 UTC
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() ); } + } } We broke this with the new "fast loading editor" mechanism recently. Thanks for the report! |