added the check for detector and receiver online in refreshing tabs

This commit is contained in:
Dhanya Maliakal 2016-11-22 14:11:11 +01:00
parent 96d8478b46
commit b131f268e0

View File

@ -680,6 +680,9 @@ void qDetectorMain::ExecuteHelp(QAction *action){
void qDetectorMain::Refresh(int index){ void qDetectorMain::Refresh(int index){
myDet->setOnline(slsDetectorDefs::ONLINE_FLAG);
myDet->setReceiverOnline(slsDetectorDefs::ONLINE_FLAG);
qDefs::checkErrorMessage(myDet,"qDetectorMain::Refresh");
if(!tabs->isTabEnabled(index)) if(!tabs->isTabEnabled(index))
tabs->setCurrentIndex((index++)<(tabs->count()-1)?index:Measurement); tabs->setCurrentIndex((index++)<(tabs->count()-1)?index:Measurement);
else{ else{