mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.5 KiB

  1. Index: konq_mainwindow.cc
  2. ===================================================================
  3. RCS file: /home/kde/kdebase/konqueror/konq_mainwindow.cc,v
  4. retrieving revision 1.1342.2.14
  5. diff -u -p -r1.1342.2.14 konq_mainwindow.cc
  6. --- ./konqueror/konq_mainwindow.cc 24 Nov 2004 18:29:51 -0000 1.1342.2.14
  7. +++ ./konqueror/konq_mainwindow.cc 12 Dec 2004 15:54:46 -0000
  8. @@ -2252,6 +2252,17 @@ KonqView * KonqMainWindow::childView( KP
  9. QString viewName = view->viewName();
  10. kdDebug() << " - viewName=" << viewName << " "
  11. << "frame names:" << view->frameNames().join( "," ) << endl;
  12. +
  13. + // First look for a hostextension containing this frame name
  14. + KParts::BrowserHostExtension *ext = KParts::BrowserHostExtension::childObject( view->part() );
  15. + if ( ext )
  16. + {
  17. + ext = ext->findFrameParent(callingPart, name);
  18. + kdDebug() << "BrowserHostExtension found part " << ext << endl;
  19. + if (!ext)
  20. + continue; // Don't use this window
  21. + }
  22. +
  23. if ( !viewName.isEmpty() && viewName == name )
  24. {
  25. kdDebug() << "found existing view by name: " << view << endl;
  26. @@ -2262,13 +2273,6 @@ KonqView * KonqMainWindow::childView( KP
  27. return view;
  28. }
  29. - // First look for a hostextension containing this frame name
  30. - KParts::BrowserHostExtension *ext = KParts::BrowserHostExtension::childObject( view->part() );
  31. - if ( ext )
  32. - {
  33. - ext = ext->findFrameParent(callingPart, name);
  34. - }
  35. -
  36. // KParts::BrowserHostExtension* ext = KonqView::hostExtension( view->part(), name );
  37. if ( ext )