Switch to unified view

a/src/qtgui/rclm_view.cpp b/src/qtgui/rclm_view.cpp
...
...
289
    bool istempfile = false;
289
    bool istempfile = false;
290
290
291
    LOGDEB(("RclMain::startNV: groksipath %d wantsf %d wantsparentf %d\n", 
291
    LOGDEB(("RclMain::startNV: groksipath %d wantsf %d wantsparentf %d\n", 
292
        groksipath, wantsfile, wantsparentfile));
292
        groksipath, wantsfile, wantsparentfile));
293
293
294
    bool notinfs = false;
295
    {
296
        string backend;
297
        doc.getmeta(Rcl::Doc::keybcknd, &backend);
298
        if (!backend.empty() && backend.compare("FS"))
299
            notinfs = true;
300
    }
301
294
    // If the command wants a file but this is not a file url, or
302
    // If the command wants a file but this is not a file url, or
295
    // there is an ipath that it won't understand, we need a temp file:
303
    // there is an ipath that it won't understand, we need a temp file:
296
    theconfig->setKeyDir(path_getfather(fn));
304
    theconfig->setKeyDir(path_getfather(fn));
305
    if (notinfs || 
297
    if (((wantsfile || wantsparentfile) && fn.empty()) ||
306
        ((wantsfile || wantsparentfile) && fn.empty()) ||
298
    (!groksipath && !doc.ipath.empty())) {
307
    (!groksipath && !doc.ipath.empty()) ) {
299
    TempFile temp;
308
    TempFile temp;
300
    Rcl::Doc& thedoc = wantsparentfile ? pdoc : doc;
309
    Rcl::Doc& thedoc = wantsparentfile ? pdoc : doc;
301
    if (!FileInterner::idocToFile(temp, string(), theconfig, thedoc)) {
310
    if (!FileInterner::idocToFile(temp, string(), theconfig, thedoc)) {
302
        QMessageBox::warning(0, "Recoll",
311
        QMessageBox::warning(0, "Recoll",
303
                 tr("Cannot extract document or create "
312
                 tr("Cannot extract document or create "