gui: main: Ensure a clean exit
This commit is contained in:
والد
d7b93d11d8
کامیت
1ec7a5a865
@ -138,7 +138,9 @@ int main(int argc, char *argv[])
|
|||||||
qRegisterMetaType<RenderConfig>("RenderConfig");
|
qRegisterMetaType<RenderConfig>("RenderConfig");
|
||||||
qRegisterMetaType<QVector<RenderTarget>>("QVector<RenderTarget>");
|
qRegisterMetaType<QVector<RenderTarget>>("QVector<RenderTarget>");
|
||||||
qRegisterMetaType<QSharedPointer<PreviewResult>>("QSharedPointer<PreviewResult>");
|
qRegisterMetaType<QSharedPointer<PreviewResult>>("QSharedPointer<PreviewResult>");
|
||||||
MainWindow w{0, socketPath};
|
MainWindow *w = new MainWindow{0, socketPath};
|
||||||
w.showMaximized();
|
w->showMaximized();
|
||||||
return a.exec();
|
int ret = a.exec();
|
||||||
|
process.waitForFinished(1000);
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
بارگذاری…
مرجع در شماره جدید
Block a user