Switch to unified view

a/src/qtgui/preview_w.cpp b/src/qtgui/preview_w.cpp
1
#ifndef lint
1
#ifndef lint
2
static char rcsid[] = "@(#$Id: preview_w.cpp,v 1.12 2006-12-20 13:55:46 dockes Exp $ (C) 2005 J.F.Dockes";
2
static char rcsid[] = "@(#$Id: preview_w.cpp,v 1.13 2006-12-20 14:09:21 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
...
...
483
        // how to handle it now. Better to show the first doc than
483
        // how to handle it now. Better to show the first doc than
484
        // a mysterious error. Happens when the file name matches a
484
        // a mysterious error. Happens when the file name matches a
485
        // a search term of course.
485
        // a search term of course.
486
        *statusp = 0;
486
        *statusp = 0;
487
        } else {
487
        } else {
488
      out->mimetype = interner.get_mimetype();
488
        *statusp = -1;
489
        *statusp = -1;
489
        }
490
        }
490
    } catch (CancelExcept) {
491
    } catch (CancelExcept) {
491
        *statusp = -1;
492
        *statusp = -1;
492
    }
493
    }
...
...
585
    if (cancel)
586
    if (cancel)
586
    return false;
587
    return false;
587
    if (status != 0) {
588
    if (status != 0) {
588
    QMessageBox::warning(0, "Recoll",
589
    QMessageBox::warning(0, "Recoll",
589
                 tr("Can't turn doc into internal rep for ") +
590
                 tr("Can't turn doc into internal rep for ") +
590
                 doc.mimetype.c_str());
591
                 fdoc.mimetype.c_str());
591
    return false;
592
    return false;
592
    }
593
    }
593
    // Reset config just in case.
594
    // Reset config just in case.
594
    rclconfig->setKeyDir("");
595
    rclconfig->setKeyDir("");
595
596