mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-01-25 08:44:38 +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();
|
psStart();
|
||||||
int result = 0;
|
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()) {
|
if (!App::quiting()) {
|
||||||
result = app.exec();
|
result = app.exec();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user