Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/main.cpp b/src/main.cpp
index e975a6b9c..91eb1b73e 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -50,13 +50,9 @@ int main(int argc, char** argv)
#if QT_VERSION >= QT_VERSION_CHECK(5, 6, 0)
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
-#endif
#ifdef Q_OS_LINUX
- if (qgetenv("XDG_SESSION_TYPE") == QByteArrayLiteral("wayland")) {
- qWarning() << "Warning: disregarding XDG_SESSION_TYPE=wayland";
- qWarning() << "To use wayland anyway, please set QT_QPA_PLATFORM=wayland";
- qunsetenv("XDG_SESSION_TYPE");
- }
+ QGuiApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
+#endif
#endif
Application app(argc, argv);
@@ -82,8 +78,7 @@ int main(int argc, char** argv)
QCommandLineOption helpOption = parser.addHelpOption();
QCommandLineOption versionOption = parser.addVersionOption();
- QCommandLineOption debugInfoOption(QStringList() << "debug-info",
- QObject::tr("Displays debugging information."));
+ QCommandLineOption debugInfoOption(QStringList() << "debug-info", QObject::tr("Displays debugging information."));
parser.addOption(configOption);
parser.addOption(keyfileOption);
parser.addOption(pwstdinOption);
@@ -144,8 +139,7 @@ int main(int argc, char** argv)
if (pwstdin) {
// we always need consume a line of STDIN if --pw-stdin is set to clear out the
// buffer for native messaging, even if the specified file does not exist
- static QTextStream in(stdin, QIODevice::ReadOnly);
- static QTextStream out(stdout, QIODevice::WriteOnly);
+ QTextStream out(stdout, QIODevice::WriteOnly);
out << QObject::tr("Database password: ") << flush;
password = Utils::getPassword();
}