Unset QT_STYLE_OVERRIDE instead of forcing Fusion

To don't break styling on KDE
This commit is contained in:
Ilya Fedin 2020-06-23 12:49:58 +04:00 committed by John Preston
parent 0b939e72c1
commit 9a65481e9d
1 changed files with 1 additions and 2 deletions

View File

@ -19,7 +19,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "core/update_checker.h"
#include <QtWidgets/QApplication>
#include <QtWidgets/QStyleFactory>
#include <QtWidgets/QDesktopWidget>
#include <QtCore/QStandardPaths>
#include <QtCore/QProcess>
@ -763,7 +762,7 @@ void start() {
&& !qEnvironmentVariableIsSet(
"TDESKTOP_I_KNOW_ABOUT_GTK_INCOMPATIBILITY")) {
qunsetenv("QT_QPA_PLATFORMTHEME");
QApplication::setStyle(QStyleFactory::create(qsl("Fusion")));
qunsetenv("QT_STYLE_OVERRIDE");
}
if(IsStaticBinary()