Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 261639
b: refs/heads/master
c: bac6aa8
h: refs/heads/master
i:
  261637: f3dffeb
  261635: 84193c6
  261631: c895baf
v: v3
  • Loading branch information
Michal Marek committed Jul 25, 2011
1 parent 32938dd commit ff1e8d9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: eb4cf5a642f6430cffff7ba5d8d9bd46ea409281
refs/heads/master: bac6aa865b3dc98e9fbc17f11d4d513d6b0bc435
13 changes: 10 additions & 3 deletions trunk/scripts/kconfig/qconf.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1478,10 +1478,13 @@ void ConfigMainWindow::loadConfig(void)
ConfigView::updateListAll();
}

void ConfigMainWindow::saveConfig(void)
bool ConfigMainWindow::saveConfig(void)
{
if (conf_write(NULL))
if (conf_write(NULL)) {
QMessageBox::information(this, "qconf", _("Unable to save configuration!"));
return false;
}
return true;
}

void ConfigMainWindow::saveConfigAs(void)
Expand Down Expand Up @@ -1642,7 +1645,11 @@ void ConfigMainWindow::closeEvent(QCloseEvent* e)
mb.setButtonText(QMessageBox::Cancel, _("Cancel Exit"));
switch (mb.exec()) {
case QMessageBox::Yes:
saveConfig();
if (saveConfig())
e->accept();
else
e->ignore();
break;
case QMessageBox::No:
e->accept();
break;
Expand Down
2 changes: 1 addition & 1 deletion trunk/scripts/kconfig/qconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ public slots:
void listFocusChanged(void);
void goBack(void);
void loadConfig(void);
void saveConfig(void);
bool saveConfig(void);
void saveConfigAs(void);
void searchConfig(void);
void showSingleView(void);
Expand Down

0 comments on commit ff1e8d9

Please sign in to comment.