]>
Commit | Line | Data |
---|---|---|
771bbb58 AM |
1 | From: Montel Laurent <montel@kde.org> |
2 | Date: Wed, 19 Sep 2012 12:59:54 +0000 | |
3 | Subject: Fix potential error when identity path is a string (bad conversion). | |
4 | X-Git-Tag: v4.9.2 | |
5 | X-Git-Url: http://quickgit.kde.org/?p=kdepimlibs.git&a=commitdiff&h=33acd1d6cc5a48974fc1093700d70caf04ae9644 | |
6 | --- | |
7 | Fix potential error when identity path is a string (bad conversion). | |
8 | ||
9 | in kde5 we will modify to akonadi::id | |
10 | --- | |
11 | ||
12 | ||
13 | --- a/kpimidentities/identity.cpp | |
14 | +++ b/kpimidentities/identity.cpp | |
15 | @@ -428,17 +428,20 @@ | |
16 | ||
17 | QString Identity::templates() const | |
18 | { | |
19 | - return property( QLatin1String( s_templates ) ).toString(); | |
20 | + const QString str = property( QLatin1String( s_templates ) ).toString(); | |
21 | + return verifyAkonadiId(str); | |
22 | } | |
23 | ||
24 | QString Identity::drafts() const | |
25 | { | |
26 | - return property( QLatin1String( s_drafts ) ).toString(); | |
27 | + const QString str = property( QLatin1String( s_drafts ) ).toString(); | |
28 | + return verifyAkonadiId(str); | |
29 | } | |
30 | ||
31 | QString Identity::fcc() const | |
32 | { | |
33 | - return property( QLatin1String( s_fcc ) ).toString(); | |
34 | + const QString str = property( QLatin1String( s_fcc ) ).toString(); | |
35 | + return verifyAkonadiId(str); | |
36 | } | |
37 | ||
38 | QString Identity::transport() const | |
39 |