summaryrefslogtreecommitdiffstats
path: root/mandriva/2010.2/kdepim/kdepim-3.5.4-fix-kalarm-call-twice-dialogbox.patch
blob: 72a50b95c9506b3ee72cf7ca9626bd86df29247b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- kdepim-3.5.4/kalarm/kalarmapp.cpp--	2006-07-27 15:15:07.000000000 +0200
+++ kdepim-3.5.4/kalarm/kalarmapp.cpp	2006-07-27 15:16:29.000000000 +0200
@@ -746,7 +746,12 @@
 				}
 
 				args->clear();      // free up memory
-				if (!initCheck())
+                /* Instead of calling initCheck (), call initCheck (true) to check the calendar only.
+                 * This works because it doesn't change the return value:
+                 * If the return value is false, it doesn't matter because we exit.
+                 * If the return value is true, the first thing MainWindow() does, is to call initCheck(), so we do the same tests. 
+                 *              Jonas Wustrack - [email protected]                        */
+				if (!initCheck(true))
 				{
 					exitCode = 1;
 					break;