Switch to unified view

a/src/qtgui/rclmain_w.cpp b/src/qtgui/rclmain_w.cpp
1
#ifndef lint
1
#ifndef lint
2
static char rcsid[] = "@(#$Id: rclmain_w.cpp,v 1.12 2006-12-05 15:23:50 dockes Exp $ (C) 2005 J.F.Dockes";
2
static char rcsid[] = "@(#$Id: rclmain_w.cpp,v 1.13 2006-12-07 07:07:35 dockes Exp $ (C) 2005 J.F.Dockes";
3
#endif
3
#endif
4
/*
4
/*
5
 *   This program is free software; you can redistribute it and/or modify
5
 *   This program is free software; you can redistribute it and/or modify
6
 *   it under the terms of the GNU General Public License as published by
6
 *   it under the terms of the GNU General Public License as published by
7
 *   the Free Software Foundation; either version 2 of the License, or
7
 *   the Free Software Foundation; either version 2 of the License, or
...
...
660
    return;
660
    return;
661
    }
661
    }
662
662
663
    string fn = urltolocalpath(doc.url);
663
    string fn = urltolocalpath(doc.url);
664
    string url = url_encode(doc.url, 7);
664
    string url = url_encode(doc.url, 7);
665
665
    string ipath = doc.ipath;
666
    // Substitute %u (url) and %f (file name) inside prototype command
666
    // Substitute %u (url) and %f (file name) inside prototype command
667
    string ncmd;
667
    string ncmd;
668
    map<char, string> subs;
668
    map<char, string> subs;
669
    subs['u'] = string("'") + url + "'";
669
    subs['u'] = escapeShell(url);
670
    subs['f'] = string("'") + fn + "'";
670
    subs['f'] = escapeShell(fn);
671
    subs['i'] = escapeShell(ipath);
671
    pcSubst(cmd, ncmd, subs);
672
    pcSubst(cmd, ncmd, subs);
672
673
673
    ncmd += " &";
674
    ncmd += " &";
674
    QStatusBar *stb = statusBar();
675
    QStatusBar *stb = statusBar();
675
    if (stb) {
676
    if (stb) {