index = recyclePoolCombo->findText(m_recyclePool, Qt::MatchExactly);
if (index == -1) {
recyclePoolCombo->insertItem(0, "");
- index = recyclePoolCombo->findText(m_recyclePool, Qt::MatchExactly);
- }
- if (index != -1) {
- recyclePoolCombo->setCurrentIndex(index);
+ index = 0;
}
+ recyclePoolCombo->setCurrentIndex(index);
} else {
QMessageBox::warning(this, tr("No Volume name"), tr("No Volume name given"),
QMessageBox::Ok, QMessageBox::Ok);
scmd += " enabled=yes";
docmd = true;
}
- if (m_recyclePool != recyclePoolCombo->currentText()) {
+ if (m_recyclePool != recyclePoolCombo->currentText() && recyclePoolCombo->currentText() != "") {
scmd += " recyclepool=\"" + recyclePoolCombo->currentText() + "\"";
docmd = true;
}