Call waitForStarted() before each waitForFinished().
--HG-- branch : develop
This commit is contained in:
parent
df758fd159
commit
fa67634f38
|
@ -292,7 +292,7 @@ bool DialogSaveLayout::TestPdf()
|
|||
#else
|
||||
proc.start(PDFTOPS); // Seek pdftops in standard path
|
||||
#endif
|
||||
if (proc.waitForFinished(15000) || proc.state() == QProcess::NotRunning)
|
||||
if (proc.waitForStarted(15000) && (proc.waitForFinished(15000) || proc.state() == QProcess::NotRunning))
|
||||
{
|
||||
res = true;
|
||||
}
|
||||
|
|
|
@ -740,7 +740,10 @@ void MainWindowsNoGUI::PdfToPs(const QStringList ¶ms) const
|
|||
#endif
|
||||
QProcess proc;
|
||||
proc.start(PDFTOPS, params);
|
||||
proc.waitForFinished(15000);
|
||||
if (proc.waitForStarted(15000))
|
||||
{
|
||||
proc.waitForFinished(15000);
|
||||
}
|
||||
#ifndef QT_NO_CURSOR
|
||||
QApplication::restoreOverrideCursor();
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue
Block a user