| 145 | } |
| 146 | |
| 147 | void ModDownloadDialog::removeSelectedMod(QString name) |
| 148 | { |
| 149 | if (modTask.contains(name)) |
| 150 | delete modTask.find(name).value(); |
| 151 | modTask.remove(name); |
| 152 | |
| 153 | m_buttons->button(QDialogButtonBox::Ok)->setEnabled(!modTask.isEmpty()); |
| 154 | } |
| 155 | |
| 156 | bool ModDownloadDialog::isModSelected(QString name, QString filename) const |
| 157 | { |
no test coverage detected