mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-12 12:57:13 +02:00
added the check for detector and receiver online in refreshing tabs
This commit is contained in:
@ -680,6 +680,9 @@ void qDetectorMain::ExecuteHelp(QAction *action){
|
||||
|
||||
|
||||
void qDetectorMain::Refresh(int index){
|
||||
myDet->setOnline(slsDetectorDefs::ONLINE_FLAG);
|
||||
myDet->setReceiverOnline(slsDetectorDefs::ONLINE_FLAG);
|
||||
qDefs::checkErrorMessage(myDet,"qDetectorMain::Refresh");
|
||||
if(!tabs->isTabEnabled(index))
|
||||
tabs->setCurrentIndex((index++)<(tabs->count()-1)?index:Measurement);
|
||||
else{
|
||||
|
Reference in New Issue
Block a user