Merge branch '0.6'

This commit is contained in:
Frank Osterfeld 2016-04-04 17:56:37 +01:00
commit 1e7ffafee9
2 changed files with 18 additions and 4 deletions

View File

@ -1,6 +1,12 @@
ChangeLog ChangeLog
========= =========
version 0.6.2 (release 2016-04-04)
* KWallet: Fixes a crash when storing passwords, seen on Debian/KDE4
version 0.6.1 (release 2016-03-31)
* Fix KWallet not working (regressions in 0.6.0)
version 0.6.0 (release 2016-03-18) version 0.6.0 (release 2016-03-18)
* Added support for the Windows Credential Store * Added support for the Windows Credential Store

View File

@ -333,10 +333,14 @@ void ReadPasswordJobPrivate::kwalletFinished( QDBusPendingCallWatcher* watcher )
if ( !watcher->isError() ) { if ( !watcher->isError() ) {
if ( mode == Binary ) { if ( mode == Binary ) {
QDBusPendingReply<QByteArray> reply = *watcher; QDBusPendingReply<QByteArray> reply = *watcher;
data = reply.value(); if (reply.isValid()) {
data = reply.value();
}
} else { } else {
QDBusPendingReply<QString> reply = *watcher; QDBusPendingReply<QString> reply = *watcher;
data = reply.value().toUtf8(); if (reply.isValid()) {
data = reply.value().toUtf8();
}
} }
} }
@ -468,10 +472,14 @@ void JobPrivate::kwalletFinished( QDBusPendingCallWatcher* watcher ) {
if ( !watcher->isError() ) { if ( !watcher->isError() ) {
if ( mode == Binary ) { if ( mode == Binary ) {
QDBusPendingReply<QByteArray> reply = *watcher; QDBusPendingReply<QByteArray> reply = *watcher;
data = reply.value(); if (reply.isValid()) {
data = reply.value();
}
} else { } else {
QDBusPendingReply<QString> reply = *watcher; QDBusPendingReply<QString> reply = *watcher;
data = reply.value().toUtf8(); if (reply.isValid()) {
data = reply.value().toUtf8();
}
} }
} }