[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdebase/konqueror
From:       Daniel Teske <teske () squorn ! de>
Date:       2005-01-26 2:24:54
Message-ID: 20050126022454.898F41D00B () office ! kde ! org
[Download RAW message or body]

CVS commit by teske: 

Change the code for the detach tab should retain history fix to make it
easier to understand.
The last patch should have closed the bug, but I messed it up, so let's try
again.
BUG:96539


  M +6 -4      konq_viewmgr.cc   1.279


--- kdebase/konqueror/konq_viewmgr.cc  #1.278:1.279
@@ -505,9 +505,11 @@ void KonqViewManager::breakOffTab( KonqF
   mainWindow->viewManager()->loadViewProfile( config, "" );
 
-  if( mainWindow->childFrame() &&  mainWindow->childFrame()->frameType() == "Tabs")
+  KonqFrameBase * newDocContainer = mainWindow->viewManager()->docContainer();
+  if( newDocContainer && newDocContainer->frameType() == "Tabs")
   {
-    KonqFrameTabs *kft = dynamic_cast<KonqFrameTabs *>(mainWindow->childFrame());
-    if(kft->childFrameList()->count())
-      kft->childFrameList()->at(0)->copyHistory( currentFrame );
+    KonqFrameTabs *kft = static_cast<KonqFrameTabs *>(newDocContainer);
+    KonqFrameBase *newFrame = dynamic_cast<KonqFrameBase*>(kft->currentPage());
+    if(newFrame)
+      newFrame->copyHistory( currentFrame );
   }
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic