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

List:       kde-bugs-dist
Subject:    [Bug 103457] crash with second konqueror tab
From:       Andreas Kling <kling () impul ! se>
Date:       2006-07-28 22:09:25
Message-ID: 20060728220925.11795.qmail () ktown ! kde ! org
[Download RAW message or body]

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
         
http://bugs.kde.org/show_bug.cgi?id=103457         
kling impul se changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From kling impul se  2006-07-29 00:09 -------
SVN commit 567466 by kling:

Don't crash with more than one status bar.

BUG: 103457


 M  +6 -5      part.cpp  
 M  +2 -0      part.h  


--- trunk/extragear/utils/filelight/src/part/part.cpp #567465:567466
 @ -177,13 +177,11  @
 bool
 Part::start( const KURL &url )
 {
-   static bool b = true; //FIXME do this better! :)
-
-   if( b ) {
+   if( !m_started ) {
       m_statusbar->addStatusBarItem( new ProgressBox( statusBar(), this ), 0, true \
                );
       connect( m_map, SIGNAL(mouseHover( const QString& )), statusBar(), \
                SLOT(message( const QString& )) );
       connect( m_map, SIGNAL(created( const Directory* )), statusBar(), \
                SLOT(clear()) );
-      b = false;
+      m_started = true;
    }
 
    if( m_manager->start( url ) ) {
 @ -240,7 +238,10  @
 
    emit setWindowCaption( prettyURL() );
 
-   static_cast<ProgressBox*>(statusBar()->child( "ProgressBox" ))->setText( \
tree->children() ); +   ProgressBox *progress = static_cast<ProgressBox \
*>(statusBar()->child( "ProgressBox" )); +
+   if( progress )
+      progress->setText( tree->children() );
 }
 
 } //namespace Filelight
--- trunk/extragear/utils/filelight/src/part/part.h #567465:567466
 @ -76,6 +76,8  @
       RadialMap::Widget  *m_map;
       class ScanManager  *m_manager;
 
+      bool m_started;
+
    private:
       bool start( const KURL& );


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

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