Skip to content

Commit

Permalink
Re #10814. Bringing back old checking code.
Browse files Browse the repository at this point in the history
  • Loading branch information
peterfpeterson committed Dec 16, 2014
1 parent a826649 commit a750164
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Code/Mantid/Framework/API/src/FrameworkManager.cpp
Expand Up @@ -123,6 +123,15 @@ void FrameworkManagerImpl::UpdateInstrumentDefinitions()
/// Sends startup information about OS and Mantid version
void FrameworkManagerImpl::SendStartupUsageInfo()
{
// see whether or not to send
int sendStartupUsageInfo = 0;
int retVal = Kernel::ConfigService::Instance().getValue(
"usagereports.enabled", sendStartupUsageInfo);
if ((retVal == 0) || (sendStartupUsageInfo == 0)) {
return; // exit early
}

// do it
try
{
IAlgorithm* algSendStartupUsage = this->createAlgorithm("SendUsage");
Expand Down

0 comments on commit a750164

Please sign in to comment.