--- Vago/trunk/Vago/preferences.cpp 2014/01/08 11:32:55 897 +++ Vago/trunk/Vago/preferences.cpp 2014/04/26 12:40:47 999 @@ -17,6 +17,13 @@ Preferences::Preferences(QWidget *parent ui->cbOniWindow->setChecked(this->vagoSettings->value("OniWindow").toBool()); ui->cbSeparate->setChecked(this->vagoSettings->value("SeparateInWorkspace").toBool()); ui->cbVagoExit->setChecked(this->vagoSettings->value("ConfirmExit").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 } @@ -60,6 +67,10 @@ void Preferences::accept (){ this->vagoSettings->setValue("OniWindow",ui->cbOniWindow->isChecked()); this->vagoSettings->setValue("SeparateInWorkspace",ui->cbSeparate->isChecked()); this->vagoSettings->setValue("ConfirmExit",ui->cbVagoExit->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.");