Restore "Open Parent" popup menu entry. Useful to open the enclosing folder. Closes issue #141

This commit is contained in:
Jean-Francois Dockes 2013-05-21 18:34:10 +02:00
parent c4954bf5a9
commit 652feb6925
3 changed files with 10 additions and 4 deletions

View File

@ -61,9 +61,11 @@ QMenu *create(QWidget *me, int opts, RefCntr<DocSequence> source, Rcl::Doc& doc)
if (source.isNotNull() && source->getEnclosing(doc, pdoc)) {
popup->addAction(me->tr("Preview P&arent document/folder"),
me, SLOT(menuPreviewParent()));
popup->addAction(me->tr("&Open Parent document/folder"),
me, SLOT(menuOpenParent()));
}
// Open parent is useful even if there is no parent because we open
// the enclosing folder.
popup->addAction(me->tr("&Open Parent document/folder"),
me, SLOT(menuOpenParent()));
if (opts & showExpand)
popup->addAction(me->tr("Find &similar documents"),
@ -80,8 +82,7 @@ QMenu *create(QWidget *me, int opts, RefCntr<DocSequence> source, Rcl::Doc& doc)
return popup;
}
Rcl::Doc getParent(RefCntr<DocSequence> source,
Rcl::Doc& doc)
Rcl::Doc getParent(RefCntr<DocSequence> source, Rcl::Doc& doc)
{
Rcl::Doc pdoc;
if (source.isNull() || !source->getEnclosing(doc, pdoc)) {

0
website/copydocs Normal file → Executable file
View File

View File

@ -87,6 +87,11 @@
<div class="news">
<dl>
<dt>2013-05-18</dt><dd>Sometimes things
<a href="http://www.lesbonscomptes.com/pages/happysearch.html">
just work</a>...</dd>
<dt>2013-05-14</dt><dd>Recoll 1.19.2 is out. See the
<a href="release-1.19.html">release notes</a> for a description
of the changes.</dd>