reapack

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

commit 5567540e24f545807e174126d40ab0b8d0fd7983
parent ebc00b4fdc21aa0dfd9a49fd59cc9ce2f2dd8a2a
Author: cfillion <cfillion@users.noreply.github.com>
Date:   Sun,  3 Jan 2016 15:17:01 -0500

don't ask to overwrite an identical remote

Diffstat:
Msrc/reapack.cpp | 9+++++++++
1 file changed, 9 insertions(+), 0 deletions(-)

diff --git a/src/reapack.cpp b/src/reapack.cpp @@ -131,6 +131,15 @@ void ReaPack::importRemote() const Remote existing = remotes->get(remote.name()); if(!existing.isNull()) { + if(existing.url() == remote.url()) { + ShowMessageBox( + "This remote is already configured.\r\n" + "Nothing to do!" + , title, MB_OK); + + return; + } + const int button = ShowMessageBox( "This remote is already configured.\r\n" "Do you want to overwrite the current remote?"