From 3596fabc78e70d0d1c9bd98c63434438fef214ee Mon Sep 17 00:00:00 2001 From: Sven Grewe Date: Sun, 28 Jun 2020 22:24:37 +0200 Subject: [PATCH] Fix --pw-stdin by initializing text streams (#4912) Co-authored-by: Sven qoreQyaS Grewe --- src/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.cpp b/src/main.cpp index ee8582b1b..a2c757463 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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(); }