[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/libs/kofficecore
From: Stefan Nikolaus <nikolaus4 () googlemail ! com>
Date: 2007-04-18 15:27:12
Message-ID: 1176910032.451821.19101.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 655492 by nikolaus:
QObject::findWidget() may return null. Check for it.
M +3 -2 KoDocument.cpp
--- trunk/koffice/libs/kofficecore/KoDocument.cpp #655491:655492
@@ -213,8 +213,9 @@
virtual void resizeEvent( QResizeEvent * )
{
- QWidget *wid = findChild<QWidget *>( "" );
- wid->setGeometry( 0, 0, width(), height() );
+ QWidget *wid = findChild<QWidget *>();
+ if ( wid )
+ wid->setGeometry( 0, 0, width(), height() );
}
virtual void childEvent( QChildEvent *ev )
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic