[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: extragear/utils/filelight/src/part
From: Andreas Kling <kling () impul ! se>
Date: 2006-07-28 22:04:34
Message-ID: 1154124274.758512.4045.nullmailer () svn ! kde ! org
[Download RAW message or body]
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