reapack

Package manager for REAPER
Log | Files | Refs | Submodules | README | LICENSE

commit 103ac3b767df90299de44f0446dff9bec7eb469d
parent 83bcd6a9b848b9d84178382a6f023b4261fe688b
Author: cfillion <cfillion@users.noreply.github.com>
Date:   Mon,  1 Feb 2016 23:09:09 -0500

don't show a context menu in the manager when no remote is selected

Diffstat:
Msrc/manager.cpp | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/manager.cpp b/src/manager.cpp @@ -94,12 +94,15 @@ void Manager::onContextMenu(HWND target, const int x, const int y) const Remote &remote = currentRemote(); + if(remote.isNull()) + return; + Menu menu; const UINT enableAction = menu.addAction(AUTO_STR("&Enable and synchronize"), ACTION_ENABLE); const UINT disableAction = - menu.addAction(AUTO_STR("&Disable"), ACTION_DISABLE); + menu.addAction(AUTO_STR("&Disable (keep files)"), ACTION_DISABLE); menu.addSeparator();