--- Vago/trunk/Vago/preferences.cpp 2014/01/08 11:32:55 897 +++ Vago/trunk/Vago/preferences.cpp 2016/10/12 21:35:13 1054 @@ -16,7 +16,15 @@ Preferences::Preferences(QWidget *parent ui->leHeight->setText(this->vagoSettings->value("WindowHeight").toString()); ui->cbOniWindow->setChecked(this->vagoSettings->value("OniWindow").toBool()); ui->cbSeparate->setChecked(this->vagoSettings->value("SeparateInWorkspace").toBool()); - ui->cbVagoExit->setChecked(this->vagoSettings->value("ConfirmExit").toBool()); + ui->cbAskSaveProject->setChecked(this->vagoSettings->value("AskSaveProject").toBool()); + ui->cbAskOpenLastProject->setChecked(this->vagoSettings->value("AskToOpenLastProject").toBool()); +#ifdef Q_OS_MAC + ui->cbUseYesAsDefaultWhenRemovingItems->setChecked(this->vagoSettings->value("useYesAsDefaultWhenRemovingItems").toBool()); +#endif + +#ifdef Q_OS_WIN + ui->cbUseYesAsDefaultWhenRemovingItems->hide(); // don't display this mac os only option in windows +#endif } @@ -59,7 +67,11 @@ void Preferences::accept (){ this->vagoSettings->setValue("WindowHeight",ui->leHeight->text()); this->vagoSettings->setValue("OniWindow",ui->cbOniWindow->isChecked()); this->vagoSettings->setValue("SeparateInWorkspace",ui->cbSeparate->isChecked()); - this->vagoSettings->setValue("ConfirmExit",ui->cbVagoExit->isChecked()); + this->vagoSettings->setValue("AskSaveProject",ui->cbAskSaveProject->isChecked()); + this->vagoSettings->setValue("AskToOpenLastProject",ui->cbAskOpenLastProject->isChecked()); +#ifdef Q_OS_MAC + this->vagoSettings->setValue("useYesAsDefaultWhenRemovingItems",ui->cbUseYesAsDefaultWhenRemovingItems->isChecked()); +#endif Util::showPopUp("You need to restart the application to all changes take effect.");