reapack

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

commit 08f3b172bd25299babb7c9bd67e7e620de697a4b
parent 41f7de10553c7280ee0221751a05a57f56c1fd54
Author: cfillion <cfillion@users.noreply.github.com>
Date:   Thu, 15 Dec 2016 00:07:11 -0500

about pkg: don't try to locate in explorer if the file doesn't exist

Diffstat:
Msrc/about.cpp | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/about.cpp b/src/about.cpp @@ -611,8 +611,13 @@ void AboutPackageDelegate::copySourceUrl() void AboutPackageDelegate::locate() { if(const Source *src = currentSource()) { + const Path &path = src->targetPath(); + + if(!FS::exists(path)) + return; + string arg = "/select,\""; - arg += Path::prefixRoot(src->targetPath()).join(); + arg += Path::prefixRoot(path).join(); arg += '"'; ShellExecute(nullptr, AUTO_STR("open"), AUTO_STR("explorer.exe"),