Commit f37bfdbd authored by Jasem Mutlaq's avatar Jasem Mutlaq
Browse files

filters inapplicable to dark and flat frames

parent 33ca4f5e
......@@ -721,7 +721,9 @@ void Capture::addJob(bool preview)
imagePrefix += frameTypeCombo->currentText();
}
if (filterCheck->isChecked() && FilterPosCombo->currentText().isEmpty() == false)
if (filterCheck->isChecked() && FilterPosCombo->currentText().isEmpty() == false &&
frameTypeCombo->currentText().compare("Bias", Qt::CaseInsensitive) &&
frameTypeCombo->currentText().compare("Dark", Qt::CaseInsensitive))
{
if (imagePrefix.isEmpty() == false || frameTypeCheck->isChecked())
imagePrefix += '_';
......@@ -777,7 +779,11 @@ void Capture::addJob(bool preview)
type->setTextAlignment(Qt::AlignHCenter);
type->setFlags(Qt::ItemIsSelectable | Qt::ItemIsEnabled);
QTableWidgetItem *filter = new QTableWidgetItem(FilterPosCombo->currentText());
QTableWidgetItem *filter = new QTableWidgetItem("--");
if (frameTypeCombo->currentText().compare("Bias", Qt::CaseInsensitive) &&
frameTypeCombo->currentText().compare("Dark", Qt::CaseInsensitive) &&
FilterPosCombo->count() > 0)
filter->setText(FilterPosCombo->currentText());
filter->setTextAlignment(Qt::AlignHCenter);
filter->setFlags(Qt::ItemIsSelectable | Qt::ItemIsEnabled);
......@@ -953,7 +959,6 @@ void Capture::executeJob(SequenceJob *job)
}
}
#include "capture.moc"
......@@ -130,9 +130,8 @@ public:
/* Capture */
void updateSequencePrefix( const QString &newPrefix);
public slots:
/* Capture */
/* Capture */
void startSequence();
void stopSequence();
void captureOne();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment