mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 22:55:11 +00:00
removed QT_STYLE_OVERRIDE env variable read
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user