|
a/src/qtgui/restable.cpp |
|
b/src/qtgui/restable.cpp |
|
... |
|
... |
747 |
LOGDEB(("ResTable::linkWasClicked: [%s]\n", ascurl));
|
747 |
LOGDEB(("ResTable::linkWasClicked: [%s]\n", ascurl));
|
748 |
|
748 |
|
749 |
int i = atoi(ascurl+1) -1;
|
749 |
int i = atoi(ascurl+1) -1;
|
750 |
int what = ascurl[0];
|
750 |
int what = ascurl[0];
|
751 |
switch (what) {
|
751 |
switch (what) {
|
|
|
752 |
// Open abstract/snippets window
|
|
|
753 |
case 'A':
|
|
|
754 |
if (m_detaildocnum >= 0)
|
|
|
755 |
emit(showSnippets(m_detaildoc));
|
|
|
756 |
break;
|
|
|
757 |
case 'D':
|
|
|
758 |
{
|
|
|
759 |
vector<Rcl::Doc> dups;
|
|
|
760 |
if (m_detaildocnum >= 0 && m_rclmain &&
|
|
|
761 |
m_model->getDocSource()->docDups(m_detaildoc, dups)) {
|
|
|
762 |
m_rclmain->newDupsW(m_detaildoc, dups);
|
|
|
763 |
}
|
|
|
764 |
}
|
752 |
case 'P':
|
765 |
case 'P':
|
753 |
case 'E':
|
766 |
case 'E':
|
754 |
{
|
767 |
{
|
755 |
if (what == 'P')
|
768 |
if (what == 'P')
|
756 |
emit docPreviewClicked(i, m_detaildoc, 0);
|
769 |
emit docPreviewClicked(i, m_detaildoc, 0);
|