Fix kview crash while closing session

pull/1/head
Slávek Banko 11 years ago
parent ba5469bc7a
commit d1eefaae6a

@ -251,7 +251,7 @@ void KView::readSettings() // TDEConfig * config )
bool KView::eventFilter( TQObject * obj, TQEvent * ev )
{
if( TQT_BASE_OBJECT(obj) == TQT_BASE_OBJECT(m_pViewer->widget()) && ev->type() == TQEvent::Resize )
if( ev->type() == TQEvent::Resize && TQT_BASE_OBJECT(obj) == TQT_BASE_OBJECT(m_pViewer->widget()) )
{
if( m_nResizeMode == ResizeImage )
handleResize();

Loading…
Cancel
Save