Commit 947c4c5a authored by Jasem Mutlaq's avatar Jasem Mutlaq

Fixing bugs with filter alias handling

parent 1d23eef8
......@@ -321,7 +321,7 @@ void Capture::checkFilter(int filterNum)
if (filterName != NULL && (i < filterName->ntp))
item = filterName->tp[i].text;
else if (filterAlias.takeAt(i) != NULL && filterAlias.at(i).isEmpty() == false)
else if (i < filterAlias.count() && filterAlias[i].isEmpty() == false)
item = filterAlias.at(i);
else
item = QString("Filter_%1").arg(i+1);
......
......@@ -44,6 +44,9 @@ OpsINDI::OpsINDI( KStars *_ks )
else
m_filterList = Options::filterAlias();
for (int i=m_filterList.count(); i < 10; i++)
m_filterList << QString::number(i+1);
filterSlotCombo->setCurrentIndex(0);
kcfg_filterAlias->setText(m_filterList[0]);
......@@ -83,7 +86,6 @@ void OpsINDI::saveFilterAlias()
{
m_filterList[filterSlotCombo->currentIndex()] = kcfg_filterAlias->text();
//Options::setfilterAlias(m_filterList);
}
void OpsINDI::updateFilterAlias(int index)
......
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