Commit ec5a5248 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇

Add icons for tab context menu

This makes it consistent with the icons Dolphin uses and also makes them more
recognizable at a glance.

Differential Revision: https://phabricator.kde.org/D5253
parent bce89c1a
......@@ -579,11 +579,11 @@ void KateViewSpace::showContextMenu(int id, const QPoint & globalPos)
Q_ASSERT(doc);
QMenu menu(this);
QAction *aCloseTab = menu.addAction(i18n("&Close Document"));
QAction *aCloseOthers = menu.addAction(i18n("Close Other &Documents"));
QAction *aCloseTab = menu.addAction(QIcon::fromTheme(QStringLiteral("tab-close")), i18n("&Close Document"));
QAction *aCloseOthers = menu.addAction(QIcon::fromTheme(QStringLiteral("tab-close-other")), i18n("Close Other &Documents"));
menu.addSeparator();
QAction *aCopyPath = menu.addAction(i18n("Copy &Path"));
QAction *aOpenFolder = menu.addAction(i18n("&Open Containing Folder"));
QAction *aCopyPath = menu.addAction(QIcon::fromTheme(QStringLiteral("edit-copy")), i18n("Copy &Path"));
QAction *aOpenFolder = menu.addAction(QIcon::fromTheme(QStringLiteral("document-open-folder")), i18n("&Open Containing Folder"));
if (KateApp::self()->documentManager()->documentList().count() < 2) {
aCloseOthers->setEnabled(false);
......
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