aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/kconfig/qconf.cc
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/kconfig/qconf.cc')
-rw-r--r--scripts/kconfig/qconf.cc17
1 files changed, 10 insertions, 7 deletions
diff --git a/scripts/kconfig/qconf.cc b/scripts/kconfig/qconf.cc
index c2796b866f8..df274febb3e 100644
--- a/scripts/kconfig/qconf.cc
+++ b/scripts/kconfig/qconf.cc
@@ -1478,10 +1478,13 @@ void ConfigMainWindow::loadConfig(void)
1478 ConfigView::updateListAll(); 1478 ConfigView::updateListAll();
1479} 1479}
1480 1480
1481void ConfigMainWindow::saveConfig(void) 1481bool ConfigMainWindow::saveConfig(void)
1482{ 1482{
1483 if (conf_write(NULL)) 1483 if (conf_write(NULL)) {
1484 QMessageBox::information(this, "qconf", _("Unable to save configuration!")); 1484 QMessageBox::information(this, "qconf", _("Unable to save configuration!"));
1485 return false;
1486 }
1487 return true;
1485} 1488}
1486 1489
1487void ConfigMainWindow::saveConfigAs(void) 1490void ConfigMainWindow::saveConfigAs(void)
@@ -1642,7 +1645,11 @@ void ConfigMainWindow::closeEvent(QCloseEvent* e)
1642 mb.setButtonText(QMessageBox::Cancel, _("Cancel Exit")); 1645 mb.setButtonText(QMessageBox::Cancel, _("Cancel Exit"));
1643 switch (mb.exec()) { 1646 switch (mb.exec()) {
1644 case QMessageBox::Yes: 1647 case QMessageBox::Yes:
1645 saveConfig(); 1648 if (saveConfig())
1649 e->accept();
1650 else
1651 e->ignore();
1652 break;
1646 case QMessageBox::No: 1653 case QMessageBox::No:
1647 e->accept(); 1654 e->accept();
1648 break; 1655 break;
@@ -1745,10 +1752,6 @@ int main(int ac, char** av)
1745 bindtextdomain(PACKAGE, LOCALEDIR); 1752 bindtextdomain(PACKAGE, LOCALEDIR);
1746 textdomain(PACKAGE); 1753 textdomain(PACKAGE);
1747 1754
1748#ifndef LKC_DIRECT_LINK
1749 kconfig_load();
1750#endif
1751
1752 progname = av[0]; 1755 progname = av[0];
1753 configApp = new QApplication(ac, av); 1756 configApp = new QApplication(ac, av);
1754 if (ac > 1 && av[1][0] == '-') { 1757 if (ac > 1 && av[1][0] == '-') {