mirror of
https://github.com/Cubitect/cubiomes-viewer.git
synced 2025-01-08 11:57:50 +08:00
Fixed inactive options button for list search mode
This commit is contained in:
parent
7b63dcb960
commit
08f04345e8
@ -288,8 +288,8 @@ void FormSearchControl::searchLockUi(bool lock)
|
||||
ui->buttonStart->setEnabled(true);
|
||||
ui->comboSearchType->setEnabled(true);
|
||||
ui->spinThreads->setEnabled(true);
|
||||
int st = ui->comboSearchType->currentIndex();
|
||||
ui->buttonMore->setEnabled(st == SEARCH_INC || st == SEARCH_LIST);
|
||||
int type = ui->comboSearchType->currentData().toInt();
|
||||
ui->buttonMore->setEnabled(type == SEARCH_INC || type == SEARCH_LIST);
|
||||
}
|
||||
emit searchStatusChanged(lock);
|
||||
}
|
||||
@ -513,9 +513,10 @@ void FormSearchControl::on_buttonSearchHelp_clicked()
|
||||
mb.exec();
|
||||
}
|
||||
|
||||
void FormSearchControl::on_comboSearchType_currentIndexChanged(int index)
|
||||
void FormSearchControl::on_comboSearchType_currentIndexChanged(int)
|
||||
{
|
||||
ui->buttonMore->setEnabled(index == SEARCH_INC || index == SEARCH_LIST);
|
||||
int type = ui->comboSearchType->currentData().toInt();
|
||||
ui->buttonMore->setEnabled(type == SEARCH_INC || type == SEARCH_LIST);
|
||||
searchProgressReset();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user