summaryrefslogtreecommitdiffstats
path: root/redhat/tdepim/kdepim-3.5.13-fix_knotes_on_suspend.patch
diff options
context:
space:
mode:
authorFrançois Andriot <albator78@libertysurf.fr>2013-06-24 19:50:32 +0200
committerFrançois Andriot <albator78@libertysurf.fr>2013-06-24 19:50:32 +0200
commitb4359e8bf97799f83dc1ca62744db7cfcc81bc87 (patch)
tree3346872613490cc467c19e1645d0026c1221bce7 /redhat/tdepim/kdepim-3.5.13-fix_knotes_on_suspend.patch
parent4cc71d79c5718d59078d06c497a56d7c05b41576 (diff)
downloadtde-packaging-b4359e8bf97799f83dc1ca62744db7cfcc81bc87.tar.gz
tde-packaging-b4359e8bf97799f83dc1ca62744db7cfcc81bc87.zip
RPM Packaging: rename directories
Diffstat (limited to 'redhat/tdepim/kdepim-3.5.13-fix_knotes_on_suspend.patch')
-rw-r--r--redhat/tdepim/kdepim-3.5.13-fix_knotes_on_suspend.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/redhat/tdepim/kdepim-3.5.13-fix_knotes_on_suspend.patch b/redhat/tdepim/kdepim-3.5.13-fix_knotes_on_suspend.patch
new file mode 100644
index 000000000..7de27843b
--- /dev/null
+++ b/redhat/tdepim/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();
+ }