From bfc5ca6c3facc3799d90fa50075a069bd147bbdd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Wed, 23 May 2012 07:59:00 +0200 Subject: [PATCH] Fix knotes to not close notes during saving session. This closes Bug 987 (cherry picked from commit c48253af15badc7a81db7ea2f22465405a897110) --- knotes/knote.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/knotes/knote.cpp b/knotes/knote.cpp index 9f037db4..006c26e5 100644 --- a/knotes/knote.cpp +++ b/knotes/knote.cpp @@ -1267,6 +1267,8 @@ void KNote::resizeEvent( TQResizeEvent *qre ) void KNote::closeEvent( TQCloseEvent *event ) { + if(kapp->sessionSaving()) + return; event->ignore(); //We don't want to close (and delete the widget). Just hide it slotClose(); }