Qt: Do not use temporary reference to utf8 pin
* qt/main.cpp (qt_cmd_handler): Keep utf8 pin byte array.
The pin pointer was invalid after the UTF8 conversion
as the converted byte array only was temporary in that
call and the data pointer becomes invalid after it's
destruction.
Commit message amended by Andre Heinecke. The original
commit message was:
const char* does not keep the temporary string returned
from toUtf8() active, since it doesn't keep the reference counter
set. So you usually just copy out garbage instead of the
pin that was entered. Just keep the QByteArray which keeps
the reference active.
- GnuPG-bug-id: T2133