Switch to unified view

a/src/qtgui/rclmain_w.cpp b/src/qtgui/rclmain_w.cpp
...
...
421
         (const char *)qurl.fragment().toLocal8Bit(), udi);
421
         (const char *)qurl.fragment().toLocal8Bit(), udi);
422
    
422
    
423
    Rcl::Doc doc;
423
    Rcl::Doc doc;
424
    if (!rcldb->getDoc(udi, doc) || doc.pc == -1)
424
    if (!rcldb->getDoc(udi, doc) || doc.pc == -1)
425
    return;
425
    return;
426
427
    // StartNativeViewer needs a db source to call getEnclosing() on.
428
    Rcl::Query *query = new Rcl::Query(rcldb);
429
    DocSequenceDb *src = 
430
  new DocSequenceDb(RefCntr<Rcl::Query>(query), "", 
431
            RefCntr<Rcl::SearchData>(new Rcl::SearchData));
432
    m_source = RefCntr<DocSequence>(src);
433
426
434
427
    // Start a native viewer if the mimetype has one defined, else a
435
    // Start a native viewer if the mimetype has one defined, else a
428
    // preview.
436
    // preview.
429
    string apptag;
437
    string apptag;
430
    doc.getmeta(Rcl::Doc::keyapptg, &apptag);
438
    doc.getmeta(Rcl::Doc::keyapptg, &apptag);