Преглед изворни кода

Fixed bug where filter textfield's background remained black

Andreas Fetzer пре 11 година
родитељ
комит
ae468a4eb5
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      Libs/DICOM/Widgets/ctkDICOMTableView.cpp

+ 2 - 1
Libs/DICOM/Widgets/ctkDICOMTableView.cpp

@@ -270,7 +270,8 @@ void ctkDICOMTableView::onFilterChanged()
 
   const QStringList uids = this->uidsForAllRows();
 
-  d->showFilterActiveWarning( d->dicomSQLFilterModel->rowCount() == 0 );
+  d->showFilterActiveWarning( d->dicomSQLFilterModel->rowCount() == 0 &&
+                              d->dicomSQLModel.rowCount() != 0);
 
   d->tblDicomDatabaseView->clearSelection();
   emit queryChanged(uids);