Switch to unified view

a/src/qtgui/preview_w.cpp b/src/qtgui/preview_w.cpp
...
...
610
610
611
    char datebuf[100];
611
    char datebuf[100];
612
    datebuf[0] = 0;
612
    datebuf[0] = 0;
613
    if (!doc.fmtime.empty() || !doc.dmtime.empty()) {
613
    if (!doc.fmtime.empty() || !doc.dmtime.empty()) {
614
    time_t mtime = doc.dmtime.empty() ? 
614
    time_t mtime = doc.dmtime.empty() ? 
615
        atol(doc.fmtime.c_str()) : atol(doc.dmtime.c_str());
615
        atoll(doc.fmtime.c_str()) : atoll(doc.dmtime.c_str());
616
    struct tm *tm = localtime(&mtime);
616
    struct tm *tm = localtime(&mtime);
617
    strftime(datebuf, 99, "%Y-%m-%d %H:%M:%S", tm);
617
    strftime(datebuf, 99, "%Y-%m-%d %H:%M:%S", tm);
618
    }
618
    }
619
    LOGDEB(("Doc.url: [%s]\n", doc.url.c_str()));
619
    LOGDEB(("Doc.url: [%s]\n", doc.url.c_str()));
620
    string url;
620
    string url;