From a73f524bf138dfa52130417b20c7a99d83a8ab7d Mon Sep 17 00:00:00 2001 From: Jay Rainey Date: Wed, 11 Dec 2013 10:42:54 +0000 Subject: [PATCH] Select default facility. Refs #8581. --- Code/Mantid/Framework/ICat/src/CatalogLogin.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Code/Mantid/Framework/ICat/src/CatalogLogin.cpp b/Code/Mantid/Framework/ICat/src/CatalogLogin.cpp index 4600892e70ab..5e1fab8a4e87 100644 --- a/Code/Mantid/Framework/ICat/src/CatalogLogin.cpp +++ b/Code/Mantid/Framework/ICat/src/CatalogLogin.cpp @@ -30,8 +30,9 @@ namespace Mantid declareProperty("Username","", requireValue,"The username to log into the catalog."); declareProperty(new Kernel::MaskedProperty("Password","", requireValue), "The password of the related username to use."); - declareProperty("FacilityName", "", boost::make_shared(Kernel::ConfigService::Instance().getFacilityNames()), - "Select a facility to log in to."); + declareProperty("FacilityName",Mantid::Kernel::ConfigService::Instance().getFacility().name(), + boost::make_shared(Kernel::ConfigService::Instance().getFacilityNames()), + "Select a facility to log in to."); } /// execute the algorithm