Fix: Disable search button in pacs search dialog when search button clicked.
This commit is contained in:
@@ -361,7 +361,7 @@ void ImportWidget::getDateIntervalForQuery(QString& startDate, QString& endDate)
|
|||||||
else if(m_pDateComboBox->currentText() == tr("Yesterday"))
|
else if(m_pDateComboBox->currentText() == tr("Yesterday"))
|
||||||
{
|
{
|
||||||
startDate_ = date.addDays(-1);
|
startDate_ = date.addDays(-1);
|
||||||
endDate_ = date;
|
endDate_ = startDate_;
|
||||||
}
|
}
|
||||||
else if (m_pDateComboBox->currentText() == tr("This week"))
|
else if (m_pDateComboBox->currentText() == tr("This week"))
|
||||||
{
|
{
|
||||||
@@ -419,6 +419,8 @@ void ImportWidget::getDateIntervalForQuery(QString& startDate, QString& endDate)
|
|||||||
// if pacs info changed, need reset the info
|
// if pacs info changed, need reset the info
|
||||||
void ImportWidget::query()
|
void ImportWidget::query()
|
||||||
{
|
{
|
||||||
|
m_pSearchButton->setDisabled(true);
|
||||||
|
m_pClearButton->setDisabled(true);
|
||||||
if (mQueryWorkerThread == nullptr)
|
if (mQueryWorkerThread == nullptr)
|
||||||
{
|
{
|
||||||
mQueryWorkerThread = new QThread;
|
mQueryWorkerThread = new QThread;
|
||||||
@@ -493,6 +495,8 @@ void ImportWidget::onStudyFoundResult(PACSStudyInfo studyInfo)
|
|||||||
|
|
||||||
void ImportWidget::updateStudyView()
|
void ImportWidget::updateStudyView()
|
||||||
{
|
{
|
||||||
|
m_pSearchButton->setEnabled(true);
|
||||||
|
m_pClearButton->setEnabled(true);
|
||||||
m_pStudyModel->clear();
|
m_pStudyModel->clear();
|
||||||
m_pStudyModel->setHorizontalHeaderLabels(m_lStudyHeaders);
|
m_pStudyModel->setHorizontalHeaderLabels(m_lStudyHeaders);
|
||||||
int iRowIdx = 0;
|
int iRowIdx = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user