Diffstat (limited to 'noncore/unsupported/mail2/libmail/configfile.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/unsupported/mail2/libmail/configfile.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/noncore/unsupported/mail2/libmail/configfile.cpp b/noncore/unsupported/mail2/libmail/configfile.cpp index a5c2b49..082b330 100644 --- a/noncore/unsupported/mail2/libmail/configfile.cpp +++ b/noncore/unsupported/mail2/libmail/configfile.cpp @@ -81,32 +81,32 @@ void ConfigFile::updateAccount(Account account) config->write(); } void ConfigFile::deleteAccount(Account account) { QFile f((QString) getenv("HOME") + "/Applications/mail/accounts/account-" + account.accountName()); f.remove(); } void ConfigFile::checkDirectory() { if (!QDir((QString) getenv("HOME") + "/Applications/mail/accounts").exists()) { system("mkdir -p $HOME/Applications/mail/accounts"); qWarning("mail: $HOME/Applications/mail/accounts created"); } } QString ConfigFile::rot13(const QString &input) { QString i = input; int l = i.length(); while(l--) { if (i[l] >= QChar('A') && i[l] <= QChar('M') || i[l] >= QChar('a') && i[l] <= QChar('m')) - i[l] = (char)((int)QChar(l[i])+13); + i[l] = QChar(i[l].unicode()+13); else if (i[l] >= QChar('N') && i[l] <= QChar('Z') || i[l] >= QChar('n') && i[l] <= QChar('z')) - i[l] = (char)((int)QChar(l[i])-13); + i[l] = QChar(i[l].unicode()-13); } return i; } |