Wait till pdfworker finishes before new search, cancel running
Tá an tiomantas seo le fáil i:
@ -121,7 +121,10 @@ void MainWindow::makePdfPreview()
|
||||
{
|
||||
if(!pdfWorkerThread.isRunning())
|
||||
pdfWorkerThread.start();
|
||||
qDeleteAll(ui->scrollAreaWidgetContents->children());
|
||||
|
||||
pdfWorker->cancelAndWait();
|
||||
QCoreApplication::processEvents(); //Process not processed images
|
||||
qDeleteAll(ui->scrollAreaWidgetContents->children());
|
||||
|
||||
ui->scrollAreaWidgetContents->setLayout(new QHBoxLayout());
|
||||
emit startPdfPreviewGeneration(this->pdfSearchResults, 0.75);
|
||||
|
Tagairt in Eagrán Nua
Cuir bac ar úsáideoir