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

Method load_default

widgets/XcaTreeView.cpp:286–311  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

284}
285
286void XcaTreeView::load_default(load_base *load)
287{
288 QString s;
289 QStringList slist = QFileDialog::getOpenFileNames(NULL, load->caption,
290 Settings["workingdir"], load->filter);
291
292 if (!slist.count())
293 return;
294
295 update_workingdir(slist[0]);
296
297 ImportMulti *dlgi = new ImportMulti(NULL);
298 foreach(s, slist) {
299 pki_base *item = NULL;
300 try {
301 item = load->loadItem(s);
302 dlgi->addItem(item);
303 }
304 catch (errorEx &err) {
305 XCA_ERROR(err);
306 delete item;
307 }
308 }
309 dlgi->execute();
310 delete dlgi;
311}
312
313void XcaTreeView::doubleClick(const QModelIndex &m)
314{

Callers 1

loadPemMethod · 0.80

Calls 2

update_workingdirFunction · 0.85
executeMethod · 0.45

Tested by

no test coverage detected