mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-01-10 08:51:12 +00:00
removed QT_STYLE_OVERRIDE env variable read
This commit is contained in:
parent
87e72fc7aa
commit
64d4a3e8a8
@ -61,7 +61,12 @@ int main(int argc, char *argv[]) {
|
||||
psStart();
|
||||
int result = 0;
|
||||
{
|
||||
Application app(argc, argv);
|
||||
QByteArray args[] = { "-style=0" }; // prepare fake args
|
||||
static const int a_cnt = sizeof(args) / sizeof(args[0]);
|
||||
int a_argc = a_cnt + 1;
|
||||
char *a_argv[a_cnt + 1] = { argv[0], args[0].data() };
|
||||
|
||||
Application app(a_argc, a_argv);
|
||||
if (!App::quiting()) {
|
||||
result = app.exec();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user