MCPcopy Create free account
hub / github.com/coreboot/coreboot / saveConfigAs

Method saveConfigAs

util/kconfig/qconf.cc:1569–1589  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1567}
1568
1569void ConfigMainWindow::saveConfigAs(void)
1570{
1571 QString str;
1572 QByteArray ba;
1573 const char *name;
1574
1575 str = QFileDialog::getSaveFileName(this, "", configname);
1576 if (str.isNull())
1577 return;
1578
1579 ba = str.toLocal8Bit();
1580 name = ba.data();
1581
1582 if (conf_write(name)) {
1583 QMessageBox::information(this, "qconf", "Unable to save configuration!");
1584 }
1585 conf_write_autoconf(0);
1586
1587 free(configname);
1588 configname = xstrdup(name);
1589}
1590
1591void ConfigMainWindow::searchConfig(void)
1592{

Callers

nothing calls this directly

Calls 4

conf_writeFunction · 0.85
conf_write_autoconfFunction · 0.85
xstrdupFunction · 0.85
freeFunction · 0.50

Tested by

no test coverage detected