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

List:       kfm-devel
Subject:    patch for 29285
From:       Carsten Pfeiffer <carpdjih () cetus ! zrz ! tu-berlin ! de>
Date:       2001-08-27 11:11:24
[Download RAW message or body]

Hi,

here's an attempt to fix the crash for "konqueror about:blank". Apparently
some mainwindow/layout stuff in Qt gets confused when KonqFrameContainer is
created and show()n, and little bit later deleted, while its parentwidget's
layout it not activated (it's not shown before).

Simple fix: don't create the create the container, when we would delete it
a second later anyway.

At least it doesn't crash for me anymore.

Cheers
Carsten Pfeiffer

["blank.patch" (text/plain)]

--- konq_viewmgr.cc	Fri Jun 29 02:36:02 2001
+++ /tmp/konq_viewmgr.cc	Mon Aug 27 13:02:51 2001
@@ -581,7 +581,7 @@
   }
   kdDebug(1202) << "KonqViewManager::loadViewProfile : loading RootItem " << rootItem << endl;
 
-  if ( rootItem != "empty" )
+  if ( rootItem != "empty" && forcedURL.url() != "about:blank" )
   {
       m_pMainContainer = new KonqFrameContainer( Qt::Horizontal, m_pMainWindow );
       connect(m_pMainContainer,SIGNAL(ctrlTabPressed()),m_pMainWindow,SLOT(slotCtrlTabPressed()));


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

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