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
|
#else
|
||||||
proc.start(PDFTOPS); // Seek pdftops in standard path
|
proc.start(PDFTOPS); // Seek pdftops in standard path
|
||||||
#endif
|
#endif
|
||||||
if (proc.waitForFinished(15000) || proc.state() == QProcess::NotRunning)
|
if (proc.waitForStarted(15000) && (proc.waitForFinished(15000) || proc.state() == QProcess::NotRunning))
|
||||||
{
|
{
|
||||||
res = true;
|
res = true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -740,7 +740,10 @@ void MainWindowsNoGUI::PdfToPs(const QStringList ¶ms) const
|
||||||
#endif
|
#endif
|
||||||
QProcess proc;
|
QProcess proc;
|
||||||
proc.start(PDFTOPS, params);
|
proc.start(PDFTOPS, params);
|
||||||
proc.waitForFinished(15000);
|
if (proc.waitForStarted(15000))
|
||||||
|
{
|
||||||
|
proc.waitForFinished(15000);
|
||||||
|
}
|
||||||
#ifndef QT_NO_CURSOR
|
#ifndef QT_NO_CURSOR
|
||||||
QApplication::restoreOverrideCursor();
|
QApplication::restoreOverrideCursor();
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue
Block a user