From 64208d5eddbc0228c6d221e1d923af8278e1cecb Mon Sep 17 00:00:00 2001 From: l_maliakal_d Date: Tue, 22 Jan 2013 09:45:24 +0000 Subject: [PATCH] dataoutput browse button disabled help in red git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorGui@139 af1100a4-978c-4157-bff7-07162d2ba061 --- slsDetectorGui/src/qTabDataOutput.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/slsDetectorGui/src/qTabDataOutput.cpp b/slsDetectorGui/src/qTabDataOutput.cpp index 3a47be74c..1e8be365a 100644 --- a/slsDetectorGui/src/qTabDataOutput.cpp +++ b/slsDetectorGui/src/qTabDataOutput.cpp @@ -540,11 +540,14 @@ void qTabDataOutput::Refresh(){ if(myDet->getBadChannelCorrection()) chkDiscardBad->setChecked(true); - if(myDet->setReceiverOnline()==slsDetectorDefs::ONLINE_FLAG) + if(myDet->setReceiverOnline()==slsDetectorDefs::ONLINE_FLAG){ btnOutputBrowse->setEnabled(false); - else + btnOutputBrowse->setToolTip("This button is disabled as receiver PC is different from " + "client PC and hence different directory structures.

" + dispOutputDir->toolTip()); + }else{ btnOutputBrowse->setEnabled(true); - + btnOutputBrowse->setToolTip(dispOutputDir->toolTip()); + } #ifdef VERBOSE cout << "**Updated DataOutput Tab" << endl << endl;