Switch to unified view

a/src/qtgui/rclmain_w.cpp b/src/qtgui/rclmain_w.cpp
...
...
1623
    // This can be overridden with the "ignoreipath" attribute
1623
    // This can be overridden with the "ignoreipath" attribute
1624
    bool groksipath = (cmd.find("%i") != string::npos) || ignoreipath;
1624
    bool groksipath = (cmd.find("%i") != string::npos) || ignoreipath;
1625
1625
1626
    // wantsfile: do we actually need a local file ? The only other
1626
    // wantsfile: do we actually need a local file ? The only other
1627
    // case here is an url %u (ie: for web history).
1627
    // case here is an url %u (ie: for web history).
1628
    bool wantsfile = cmd.find("%f") != string::npos;
1628
    bool wantsfile = cmd.find("%f") != string::npos && urlisfileurl(doc.url);
1629
    bool wantsparentfile = cmd.find("%F") != string::npos;
1629
    bool wantsparentfile = cmd.find("%F") != string::npos && 
1630
  urlisfileurl(doc.url);
1630
1631
1631
    if (wantsfile && wantsparentfile) {
1632
    if (wantsfile && wantsparentfile) {
1632
    QMessageBox::warning(0, "Recoll", 
1633
    QMessageBox::warning(0, "Recoll", 
1633
                 tr("Viewer command line for %1 specifies both "
1634
                 tr("Viewer command line for %1 specifies both "
1634
                "file and parent file value: unsupported")
1635
                "file and parent file value: unsupported")