Delay for correct the first fitbest zoom.
--HG-- branch : develop
This commit is contained in:
parent
45454a8955
commit
39e7b2df89
|
@ -61,7 +61,15 @@ int main(int argc, char *argv[])
|
||||||
#endif // !defined(Q_OS_MAC)
|
#endif // !defined(Q_OS_MAC)
|
||||||
app.setMainWindow(&w);
|
app.setMainWindow(&w);
|
||||||
|
|
||||||
QTimer::singleShot(0, &w, SLOT(ProcessCMD()));
|
int msec = 0;
|
||||||
|
//Before we load pattern show window.
|
||||||
|
if (VApplication::IsGUIMode())
|
||||||
|
{
|
||||||
|
w.show();
|
||||||
|
msec = 15; // set delay for correct the first fitbest zoom
|
||||||
|
}
|
||||||
|
|
||||||
|
QTimer::singleShot(msec, &w, SLOT(ProcessCMD()));
|
||||||
|
|
||||||
return app.exec();
|
return app.exec();
|
||||||
}
|
}
|
||||||
|
|
|
@ -4024,10 +4024,8 @@ void MainWindow::ProcessCMD()
|
||||||
const VCommandLinePtr cmd = qApp->CommandLine();
|
const VCommandLinePtr cmd = qApp->CommandLine();
|
||||||
auto args = cmd->OptInputFileNames();
|
auto args = cmd->OptInputFileNames();
|
||||||
|
|
||||||
//Before we load pattern show window.
|
|
||||||
if (VApplication::IsGUIMode())
|
if (VApplication::IsGUIMode())
|
||||||
{
|
{
|
||||||
show();
|
|
||||||
ReopenFilesAfterCrash(args);
|
ReopenFilesAfterCrash(args);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue
Block a user