summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2013-11-27 18:34:44 +0100
committerSlávek Banko <slavek.banko@axis.cz>2013-11-27 19:30:27 +0100
commitd1eefaae6a1459647e5199057b39de1e7b15e973 (patch)
treeac1fef5e420a39e23156710d2448bf07275987a2
parentba5469bc7a14cc388b4f690c7ef658812d23deb0 (diff)
downloadtdegraphics-d1eefaae6a1459647e5199057b39de1e7b15e973.tar.gz
tdegraphics-d1eefaae6a1459647e5199057b39de1e7b15e973.zip
Fix kview crash while closing session
-rw-r--r--kview/kview.cpp2
1 files changed, 1 insertions, 1 deletions
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();