|
a/src/qtgui/preview/preview.ui.h |
|
b/src/qtgui/preview/preview.ui.h |
|
... |
|
... |
397 |
progress.setMinimumDuration(1000);
|
397 |
progress.setMinimumDuration(1000);
|
398 |
WaiterThread waiter(100);
|
398 |
WaiterThread waiter(100);
|
399 |
|
399 |
|
400 |
// Load and convert file
|
400 |
// Load and convert file
|
401 |
Rcl::Doc fdoc;
|
401 |
Rcl::Doc fdoc;
|
|
|
402 |
// Need to setup config to retrieve possibly local parameters
|
|
|
403 |
rclconfig->setKeyDir(path_getfather(fn));
|
402 |
int status = 1;
|
404 |
int status = 1;
|
403 |
LoadThread lthr(&status, &fdoc, fn, doc.ipath, &doc.mimetype);
|
405 |
LoadThread lthr(&status, &fdoc, fn, doc.ipath, &doc.mimetype);
|
404 |
lthr.start();
|
406 |
lthr.start();
|
405 |
int i;
|
407 |
int i;
|
406 |
for (i = 1;;i++) {
|
408 |
for (i = 1;;i++) {
|
|
... |
|
... |
417 |
QMessageBox::warning(0, "Recoll",
|
419 |
QMessageBox::warning(0, "Recoll",
|
418 |
tr("Can't turn doc into internal rep for ") +
|
420 |
tr("Can't turn doc into internal rep for ") +
|
419 |
doc.mimetype.c_str());
|
421 |
doc.mimetype.c_str());
|
420 |
return;
|
422 |
return;
|
421 |
}
|
423 |
}
|
|
|
424 |
// Reset config just in case.
|
|
|
425 |
rclconfig->setKeyDir("");
|
422 |
|
426 |
|
423 |
// Highlight search terms:
|
427 |
// Highlight search terms:
|
424 |
progress.setLabelText(tr("Creating preview text"));
|
428 |
progress.setLabelText(tr("Creating preview text"));
|
425 |
list<string> terms;
|
429 |
list<string> terms;
|
426 |
rcldb->getQueryTerms(terms);
|
430 |
rcldb->getQueryTerms(terms);
|