- Fixed a possible crash when saving options

This commit is contained in:
Christophe Dumez 2007-03-11 00:55:48 +00:00
parent a4deec6cde
commit 5e57929f07
3 changed files with 7 additions and 7 deletions

View file

@ -521,8 +521,8 @@ void options_imp::on_okButton_clicked(){
saveOptions();
applyButton->setEnabled(false);
// set infobar text
emit status_changed(tr("Options were saved successfully."), true);
this->hide();
emit status_changed(tr("Options were saved successfully."), true);
}else{
setAttribute(Qt::WA_DeleteOnClose);
accept();