From d1eefaae6a1459647e5199057b39de1e7b15e973 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Wed, 27 Nov 2013 18:34:44 +0100 Subject: [PATCH] Fix kview crash while closing session --- kview/kview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kview/kview.cpp b/kview/kview.cpp index f91942d1..3c487eac 100644 --- a/kview/kview.cpp +++ b/kview/kview.cpp @@ -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();