mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
removed QT_STYLE_OVERRIDE env variable read
This commit is contained in:
parent
87e72fc7aa
commit
64d4a3e8a8
1 changed files with 6 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue