|
a/src/qtgui/rclm_view.cpp |
|
b/src/qtgui/rclm_view.cpp |
|
... |
|
... |
298 |
}
|
298 |
}
|
299 |
|
299 |
|
300 |
bool enterHistory = false;
|
300 |
bool enterHistory = false;
|
301 |
bool istempfile = false;
|
301 |
bool istempfile = false;
|
302 |
|
302 |
|
303 |
LOGDEB("RclMain::startNV: groksipath " << (groksipath) << " wantsf " << (wantsfile) << " wantsparentf " << (wantsparentfile) << "\n" );
|
303 |
LOGDEB("RclMain::startNV: groksipath " << groksipath << " wantsf " <<
|
|
|
304 |
wantsfile << " wantsparentf " << wantsparentfile << "\n");
|
304 |
|
305 |
|
305 |
// If the command wants a file but this is not a file url, or
|
306 |
// If the command wants a file but this is not a file url, or
|
306 |
// there is an ipath that it won't understand, we need a temp file:
|
307 |
// there is an ipath that it won't understand, we need a temp file:
|
307 |
theconfig->setKeyDir(fn.empty() ? "" : path_getfather(fn));
|
308 |
theconfig->setKeyDir(fn.empty() ? "" : path_getfather(fn));
|
308 |
if (!doc.isFsFile() ||
|
309 |
if (!doc.isFsFile() ||
|
|
... |
|
... |
326 |
// If using an actual file, check that it exists, and if it is
|
327 |
// If using an actual file, check that it exists, and if it is
|
327 |
// compressed, we may need an uncompressed version
|
328 |
// compressed, we may need an uncompressed version
|
328 |
if (!fn.empty() && theconfig->mimeViewerNeedsUncomp(doc.mimetype)) {
|
329 |
if (!fn.empty() && theconfig->mimeViewerNeedsUncomp(doc.mimetype)) {
|
329 |
if (access(fn.c_str(), R_OK) != 0) {
|
330 |
if (access(fn.c_str(), R_OK) != 0) {
|
330 |
QMessageBox::warning(0, "Recoll",
|
331 |
QMessageBox::warning(0, "Recoll",
|
331 |
tr("Can't access file: ") +
|
332 |
tr("Can't access file: ") + u8s2qs(fn));
|
332 |
QString::fromLocal8Bit(fn.c_str()));
|
|
|
333 |
return;
|
333 |
return;
|
334 |
}
|
334 |
}
|
335 |
TempFile temp;
|
335 |
TempFile temp;
|
336 |
if (FileInterner::isCompressed(fn, theconfig)) {
|
336 |
if (FileInterner::isCompressed(fn, theconfig)) {
|
337 |
if (!FileInterner::maybeUncompressToTemp(temp, fn, theconfig,
|
337 |
if (!FileInterner::maybeUncompressToTemp(temp, fn, theconfig,
|