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)
|
||||
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();
|
||||
}
|
||||
|
|
|
@ -4024,10 +4024,8 @@ void MainWindow::ProcessCMD()
|
|||
const VCommandLinePtr cmd = qApp->CommandLine();
|
||||
auto args = cmd->OptInputFileNames();
|
||||
|
||||
//Before we load pattern show window.
|
||||
if (VApplication::IsGUIMode())
|
||||
{
|
||||
show();
|
||||
ReopenFilesAfterCrash(args);
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue
Block a user