summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorAL <26797547+Al12rs@users.noreply.github.com>2020-04-29 17:04:25 +0200
committerAL <26797547+Al12rs@users.noreply.github.com>2020-04-29 17:04:25 +0200
commit4d67365600383d739df5288612a347948d5506b3 (patch)
tree029b6f8b2089e7767b4d1e050c894257880dfb52 /src/mainwindow.cpp
parent312af10f4f7aae13d953141ad9e2fb0180aebbef (diff)
Only show color context menu for mods when right clicking on Notes column.
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 8393d314..b5beb229 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -4644,6 +4644,7 @@ void MainWindow::on_modList_customContextMenuRequested(const QPoint &pos)
m_ContextIdx = mapToModel(m_OrganizerCore.modList(), modList->indexAt(pos));
m_ContextRow = m_ContextIdx.row();
+ int contextColumn = m_ContextIdx.column();
if (m_ContextRow == -1) {
// no selection
@@ -4766,12 +4767,14 @@ void MainWindow::on_modList_customContextMenuRequested(const QPoint &pos)
menu.addSeparator();
- menu.addAction(tr("Select Color..."), this, SLOT(setColor_clicked()));
+ if (contextColumn == ModList::COL_NOTES) {
+ menu.addAction(tr("Select Color..."), this, SLOT(setColor_clicked()));
- if (info->getColor().isValid())
- menu.addAction(tr("Reset Color"), this, SLOT(resetColor_clicked()));
+ if (info->getColor().isValid())
+ menu.addAction(tr("Reset Color"), this, SLOT(resetColor_clicked()));
- menu.addSeparator();
+ menu.addSeparator();
+ }
if (info->getNexusID() > 0 && Settings::instance().nexus().endorsementIntegration()) {
switch (info->endorsedState()) {