Switch to unified view

a/src/qtgui/respopup.cpp b/src/qtgui/respopup.cpp
...
...
59
59
60
    Rcl::Doc pdoc;
60
    Rcl::Doc pdoc;
61
    if (source.isNotNull() && source->getEnclosing(doc, pdoc)) {
61
    if (source.isNotNull() && source->getEnclosing(doc, pdoc)) {
62
    popup->addAction(me->tr("Preview P&arent document/folder"), 
62
    popup->addAction(me->tr("Preview P&arent document/folder"), 
63
             me, SLOT(menuPreviewParent()));
63
             me, SLOT(menuPreviewParent()));
64
  popup->addAction(me->tr("&Open Parent document/folder"), 
65
           me, SLOT(menuOpenParent()));
66
    }
64
    }
65
    // Open parent is useful even if there is no parent because we open
66
    // the enclosing folder.
67
    popup->addAction(me->tr("&Open Parent document/folder"), 
68
           me, SLOT(menuOpenParent()));
67
69
68
    if (opts & showExpand)
70
    if (opts & showExpand)
69
    popup->addAction(me->tr("Find &similar documents"), 
71
    popup->addAction(me->tr("Find &similar documents"), 
70
             me, SLOT(menuExpand()));
72
             me, SLOT(menuExpand()));
71
73
...
...
78
             me, SLOT(menuShowSubDocs()));
80
             me, SLOT(menuShowSubDocs()));
79
81
80
    return popup;
82
    return popup;
81
}
83
}
82
84
83
Rcl::Doc getParent(RefCntr<DocSequence> source,
85
Rcl::Doc getParent(RefCntr<DocSequence> source, Rcl::Doc& doc)
84
                 Rcl::Doc& doc)
85
{
86
{
86
    Rcl::Doc pdoc;
87
    Rcl::Doc pdoc;
87
    if (source.isNull() || !source->getEnclosing(doc, pdoc)) {
88
    if (source.isNull() || !source->getEnclosing(doc, pdoc)) {
88
    // No parent doc: show enclosing folder with app configured for
89
    // No parent doc: show enclosing folder with app configured for
89
    // directories
90
    // directories