| 335 | } |
| 336 | |
| 337 | void ImportMulti::execute(int force, QStringList failed) |
| 338 | { |
| 339 | importError(failed); |
| 340 | |
| 341 | /* if there is nothing to import don't pop up */ |
| 342 | if (entries() == 0) { |
| 343 | accept(); |
| 344 | return; |
| 345 | } |
| 346 | /* if there is only 1 item and force is 0 import it silently */ |
| 347 | if (entries() == 1) { |
| 348 | QModelIndex idx = mcont->index(0, 0, QModelIndex()); |
| 349 | if (force == 0 && openDB()) { |
| 350 | pki_base *pki = import(idx); |
| 351 | if (pki && !Settings["suppress_messages"]) |
| 352 | XCA_INFO(pki->getMsg(pki_base::msg_import). |
| 353 | arg(pki->getIntName())); |
| 354 | |
| 355 | } else { |
| 356 | showDetail(idx); |
| 357 | } |
| 358 | return; |
| 359 | } |
| 360 | /* the behaviour for more than one item */ |
| 361 | exec(); |
| 362 | } |
nothing calls this directly
no test coverage detected