mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-21 19:30:03 +02:00
added the check for detector and receiver online in refreshing tabs
This commit is contained in:
parent
96d8478b46
commit
b131f268e0
@ -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{
|
||||
|
Loading…
x
Reference in New Issue
Block a user