Skip to content

Commit

Permalink
Fix use of Copy on Import checkbox
Browse files Browse the repository at this point in the history
Was checking for enabled, but needed instead to look
at check state.
  • Loading branch information
pieper committed Jan 18, 2012
1 parent 511f031 commit 943599e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Libs/DICOM/Widgets/ctkDICOMAppWidget.cpp
Expand Up @@ -413,7 +413,7 @@ void ctkDICOMAppWidget::onImportDirectory(QString directory)
{
QCheckBox* copyOnImport = qobject_cast<QCheckBox*>(d->ImportDialog->bottomWidget());
QString targetDirectory;
if (copyOnImport->isEnabled())
if (copyOnImport->checkState() == Qt::Checked)
{
targetDirectory = d->DICOMDatabase->databaseDirectory();
}
Expand Down

0 comments on commit 943599e

Please sign in to comment.