Parcourir la source

Fixed bug where filter textfield's background remained black

Andreas Fetzer il y a 11 ans
Parent
commit
ae468a4eb5
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  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);