MCPcopy Create free account
hub / github.com/chris2511/xca / execute

Method execute

widgets/ImportMulti.cpp:337–362  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

335}
336
337void 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}

Callers

nothing calls this directly

Calls 4

QModelIndexClass · 0.85
getIntNameMethod · 0.80
indexMethod · 0.45
getMsgMethod · 0.45

Tested by

no test coverage detected