Commit 3e5cbc00 authored by Jean-Francois Dockes's avatar Jean-Francois Dockes
Browse files

Fix inactive click on "Preview" link inside detail area of auxiliary restable...

Fix inactive click on "Preview" link inside detail area of auxiliary restable used for "Show subdocs"

--HG--
branch : RECOLL_1_21_MAINT
parent 5e40b852
......@@ -790,10 +790,15 @@ void ResTable::linkWasClicked(const QUrl &url)
case 'P':
case 'E':
{
if (what == 'P')
emit docPreviewClicked(i, m_detaildoc, 0);
else
if (what == 'P') {
if (m_ismainres) {
emit docPreviewClicked(i, m_detaildoc, 0);
} else {
emit previewRequested(m_detaildoc);
}
} else {
emit editRequested(m_detaildoc);
}
}
break;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment