Changeset View
Changeset View
Standalone View
Standalone View
krusader/Dialogs/checksumdlg.cpp
Context not available. | |||||
328 | proc.start(); | 328 | proc.start(); | ||
---|---|---|---|---|---|
329 | // TODO make use of asynchronous process starting. waitForStarted(int msec = 30000) is blocking | 329 | // TODO make use of asynchronous process starting. waitForStarted(int msec = 30000) is blocking | ||
330 | // it would be better to connect to started(), error() and finished() | 330 | // it would be better to connect to started(), error() and finished() | ||
331 | if (proc.waitForStarted()) while (proc.state() == QProcess::Running) { | 331 | if (proc.waitForStarted()) | ||
332 | while (proc.state() == QProcess::Running) { | ||||
332 | usleep(500); | 333 | usleep(500); | ||
333 | qApp->processEvents(); | 334 | qApp->processEvents(); | ||
334 | if (krApp->wasWaitingCancelled()) { // user cancelled | 335 | if (krApp->wasWaitingCancelled()) { // user cancelled | ||
Context not available. | |||||
472 | proc.start(); | 473 | proc.start(); | ||
473 | // TODO make use of asynchronous process starting. waitForStarted(int msec = 30000) is blocking | 474 | // TODO make use of asynchronous process starting. waitForStarted(int msec = 30000) is blocking | ||
474 | // it would be better to connect to started(), error() and finished() | 475 | // it would be better to connect to started(), error() and finished() | ||
475 | if (proc.waitForStarted()) while (proc.state() == QProcess::Running) { | 476 | if (proc.waitForStarted()) | ||
477 | while (proc.state() == QProcess::Running) { | ||||
476 | usleep(500); | 478 | usleep(500); | ||
477 | qApp->processEvents(); | 479 | qApp->processEvents(); | ||
478 | if (krApp->wasWaitingCancelled()) { // user cancelled | 480 | if (krApp->wasWaitingCancelled()) { // user cancelled | ||
Context not available. |