From kde-commits Fri Apr 13 07:10:19 2007 From: Thomas Zander Date: Fri, 13 Apr 2007 07:10:19 +0000 To: kde-commits Subject: koffice/libs/kofficecore Message-Id: <1176448219.621641.7198.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=117648741508572 SVN commit 653393 by zander: Add assert that gets hit when I start krita. What changed in statusbars tha could make this happen? Untabify M +4 -3 KoView.cpp --- trunk/koffice/libs/kofficecore/KoView.cpp #653392:653393 @@ -101,12 +101,13 @@ void ensureItemShown( KStatusBar * sb ) { + Q_ASSERT(m_widget); if ( !m_visible ) { if( m_permanent ) - sb->addPermanentWidget( m_widget, m_stretch ); - else - sb->addWidget( m_widget, m_stretch ); + sb->addPermanentWidget( m_widget, m_stretch ); + else + sb->addWidget( m_widget, m_stretch ); m_visible = true; m_widget->show();