commit 0f8f8959824c748f631efb697d688439e0b4a09b
parent 3abf7230a4b3cfbf41c02d1845d4fe14d22e900b
Author: cfillion <cfillion@users.noreply.github.com>
Date: Tue, 7 Jun 2016 00:08:50 -0400
import: report sucess if the remote already exists
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/import.cpp b/src/import.cpp
@@ -148,7 +148,7 @@ bool Import::import(const Remote &remote)
AUTO_STR("This repository is protected and cannot be overwritten."),
TITLE, MB_OK);
- return false;
+ return true;
}
else if(existing.url() != remote.url()) {
auto_char msg[1024] = {};
@@ -169,7 +169,7 @@ bool Import::import(const Remote &remote)
make_autostring(remote.name()).c_str());
MessageBox(handle(), msg, TITLE, MB_OK);
- return false;
+ return true;
}
else {
Transaction *tx = m_reapack->setupTransaction();