]> git.pld-linux.org Git - packages/kde4-kdelibs.git/blob - kde4-kdelibs-ssl.patch
- rel 2; fixes CVE-2014-3494
[packages/kde4-kdelibs.git] / kde4-kdelibs-ssl.patch
1 From: David Faure <faure@kde.org>
2 Date: Wed, 18 Jun 2014 18:29:04 +0000
3 Subject: Don't require a job to handle messageboxes.
4 X-Git-Url: http://quickgit.kde.org/?p=kdelibs.git&a=commitdiff&h=bbae87dc1be3ae063796a582774bd5642cacdd5d
5 ---
6 Don't require a job to handle messageboxes.
7
8 The POP3 ioslave doesn't have a job when it gets here.
9 ---
10
11
12 --- a/kio/kio/usernotificationhandler.cpp
13 +++ b/kio/kio/usernotificationhandler.cpp
14 @@ -19,7 +19,7 @@
15  #include "usernotificationhandler_p.h"
16  
17  #include "slave.h"
18 -#include "job_p.h"
19 +#include "jobuidelegate.h"
20  
21  #include <kdebug.h>
22  
23 @@ -76,19 +76,18 @@
24  
25          if (m_cachedResults.contains(key)) {
26              result = *(m_cachedResults[key]);
27 -        } else if (r->slave->job()) {
28 -            SimpleJobPrivate* jobPrivate = SimpleJobPrivate::get(r->slave->job());
29 -            if (jobPrivate) {
30 -                result = jobPrivate->requestMessageBox(r->type,
31 -                                                      r->data.value(MSG_TEXT).toString(),
32 -                                                      r->data.value(MSG_CAPTION).toString(),
33 -                                                      r->data.value(MSG_YES_BUTTON_TEXT).toString(),
34 -                                                      r->data.value(MSG_NO_BUTTON_TEXT).toString(),
35 -                                                      r->data.value(MSG_YES_BUTTON_ICON).toString(),
36 -                                                      r->data.value(MSG_NO_BUTTON_ICON).toString(),
37 -                                                      r->data.value(MSG_DONT_ASK_AGAIN).toString(),
38 -                                                      r->data.value(MSG_META_DATA).toMap());
39 -            }
40 +        } else {
41 +            JobUiDelegate ui;
42 +            const JobUiDelegate::MessageBoxType type = static_cast<JobUiDelegate::MessageBoxType>(r->type);
43 +            result = ui.requestMessageBox(type,
44 +                                          r->data.value(MSG_TEXT).toString(),
45 +                                          r->data.value(MSG_CAPTION).toString(),
46 +                                          r->data.value(MSG_YES_BUTTON_TEXT).toString(),
47 +                                          r->data.value(MSG_NO_BUTTON_TEXT).toString(),
48 +                                          r->data.value(MSG_YES_BUTTON_ICON).toString(),
49 +                                          r->data.value(MSG_NO_BUTTON_ICON).toString(),
50 +                                          r->data.value(MSG_DONT_ASK_AGAIN).toString(),
51 +                                          r->data.value(MSG_META_DATA).toMap());
52              m_cachedResults.insert(key, new int(result));
53          }
54      } else {
55
This page took 0.066105 seconds and 3 git commands to generate.