MCPcopy Create free account
hub / github.com/Entware/Entware / loadConfig

Method loadConfig

scripts/config/qconf.cc:1536–1556  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1534}
1535
1536void ConfigMainWindow::loadConfig(void)
1537{
1538 QString str;
1539 QByteArray ba;
1540 const char *name;
1541
1542 str = QFileDialog::getOpenFileName(this, "", configname);
1543 if (str.isNull())
1544 return;
1545
1546 ba = str.toLocal8Bit();
1547 name = ba.data();
1548
1549 if (conf_read(name))
1550 QMessageBox::information(this, "qconf", "Unable to load configuration!");
1551
1552 free(configname);
1553 configname = xstrdup(name);
1554
1555 ConfigList::updateListAllForAll();
1556}
1557
1558bool ConfigMainWindow::saveConfig(void)
1559{

Callers

nothing calls this directly

Calls 2

conf_readFunction · 0.85
xstrdupFunction · 0.85

Tested by

no test coverage detected