|
a/src/qtgui/respopup.cpp |
|
b/src/qtgui/respopup.cpp |
|
... |
|
... |
101 |
}
|
101 |
}
|
102 |
|
102 |
|
103 |
popup->addAction(QWidget::tr("Copy &File Name"), me, SLOT(menuCopyFN()));
|
103 |
popup->addAction(QWidget::tr("Copy &File Name"), me, SLOT(menuCopyFN()));
|
104 |
popup->addAction(QWidget::tr("Copy &URL"), me, SLOT(menuCopyURL()));
|
104 |
popup->addAction(QWidget::tr("Copy &URL"), me, SLOT(menuCopyURL()));
|
105 |
|
105 |
|
106 |
if ((opts&showSaveOne) && !doc.ipath.empty())
|
106 |
if ((opts&showSaveOne) && (!doc.isFsFile() || !doc.ipath.empty()))
|
107 |
popup->addAction(QWidget::tr("&Write to File"), me, SLOT(menuSaveToFile()));
|
107 |
popup->addAction(QWidget::tr("&Write to File"), me,
|
|
|
108 |
SLOT(menuSaveToFile()));
|
108 |
|
109 |
|
109 |
if ((opts&showSaveSel))
|
110 |
if ((opts&showSaveSel))
|
110 |
popup->addAction(QWidget::tr("Save selection to files"),
|
111 |
popup->addAction(QWidget::tr("Save selection to files"),
|
111 |
me, SLOT(menuSaveSelection()));
|
112 |
me, SLOT(menuSaveSelection()));
|
112 |
|
113 |
|
|
... |
|
... |
115 |
popup->addAction(QWidget::tr("Preview P&arent document/folder"),
|
116 |
popup->addAction(QWidget::tr("Preview P&arent document/folder"),
|
116 |
me, SLOT(menuPreviewParent()));
|
117 |
me, SLOT(menuPreviewParent()));
|
117 |
}
|
118 |
}
|
118 |
// Open parent is useful even if there is no parent because we open
|
119 |
// Open parent is useful even if there is no parent because we open
|
119 |
// the enclosing folder.
|
120 |
// the enclosing folder.
|
|
|
121 |
if (doc.isFsFile())
|
120 |
popup->addAction(QWidget::tr("&Open Parent document/folder"),
|
122 |
popup->addAction(QWidget::tr("&Open Parent document/folder"),
|
121 |
me, SLOT(menuOpenParent()));
|
123 |
me, SLOT(menuOpenParent()));
|
122 |
|
124 |
|
123 |
if (opts & showExpand)
|
125 |
if (opts & showExpand)
|
124 |
popup->addAction(QWidget::tr("Find &similar documents"),
|
126 |
popup->addAction(QWidget::tr("Find &similar documents"),
|
125 |
me, SLOT(menuExpand()));
|
127 |
me, SLOT(menuExpand()));
|
126 |
|
128 |
|