Fix --pw-stdin by initializing text streams (#4912)

Co-authored-by: Sven qoreQyaS Grewe <sven.grewe@akquinet.de>
This commit is contained in:
Sven Grewe 2020-06-28 22:24:37 +02:00 committed by GitHub
parent fd65a47d51
commit 3596fabc78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -145,6 +145,7 @@ int main(int argc, char** argv)
// buffer for native messaging, even if the specified file does not exist
QTextStream out(stdout, QIODevice::WriteOnly);
out << QObject::tr("Database password: ") << flush;
Utils::setDefaultTextStreams();
password = Utils::getPassword();
}