summaryrefslogtreecommitdiffstats
path: root/redhat/kdepim/kdepim-3.5.13-fix_knotes_on_suspend.patch
diff options
context:
space:
mode:
authorFrancois Andriot <francois.andriot@free.fr>2012-06-04 23:05:28 +0200
committerFrancois Andriot <francois.andriot@free.fr>2012-06-04 23:05:28 +0200
commita8d78224c6ea9b943357902276de7a513d0fbd8d (patch)
treeb1fc22b372792bf2cd2b3bd9add09fb3df8e71ff /redhat/kdepim/kdepim-3.5.13-fix_knotes_on_suspend.patch
parent7f3d4fcab8d85cda8766150784e9133f61110019 (diff)
downloadtde-packaging-a8d78224c6ea9b943357902276de7a513d0fbd8d.tar.gz
tde-packaging-a8d78224c6ea9b943357902276de7a513d0fbd8d.zip
RHEL/Fedora: various updates
Diffstat (limited to 'redhat/kdepim/kdepim-3.5.13-fix_knotes_on_suspend.patch')
-rw-r--r--redhat/kdepim/kdepim-3.5.13-fix_knotes_on_suspend.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/redhat/kdepim/kdepim-3.5.13-fix_knotes_on_suspend.patch b/redhat/kdepim/kdepim-3.5.13-fix_knotes_on_suspend.patch
new file mode 100644
index 000000000..7de27843b
--- /dev/null
+++ b/redhat/kdepim/kdepim-3.5.13-fix_knotes_on_suspend.patch
@@ -0,0 +1,20 @@
+commit c48253af15badc7a81db7ea2f22465405a897110
+Author: Slávek Banko <slavek.banko@axis.cz>
+Date: 1337752740 +0200
+
+ Fix knotes to not close notes during saving session.
+ This closes Bug 987
+
+diff --git a/knotes/knote.cpp b/knotes/knote.cpp
+index 08c24b8..e68c8ca 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();
+ }