Fix: Disable search button in pacs search dialog when search button clicked.

This commit is contained in:
sunwen
2025-07-22 14:22:27 +08:00
parent afd5694ba0
commit 162eca5501

View File

@@ -361,7 +361,7 @@ void ImportWidget::getDateIntervalForQuery(QString& startDate, QString& endDate)
else if(m_pDateComboBox->currentText() == tr("Yesterday"))
{
startDate_ = date.addDays(-1);
endDate_ = date;
endDate_ = startDate_;
}
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
void ImportWidget::query()
{
m_pSearchButton->setDisabled(true);
m_pClearButton->setDisabled(true);
if (mQueryWorkerThread == nullptr)
{
mQueryWorkerThread = new QThread;
@@ -493,6 +495,8 @@ void ImportWidget::onStudyFoundResult(PACSStudyInfo studyInfo)
void ImportWidget::updateStudyView()
{
m_pSearchButton->setEnabled(true);
m_pClearButton->setEnabled(true);
m_pStudyModel->clear();
m_pStudyModel->setHorizontalHeaderLabels(m_lStudyHeaders);
int iRowIdx = 0;