GUI: Show empty savepath as 'Default', not 'None'

This commit is contained in:
Eugene Sandulenko 2011-10-24 23:16:14 +01:00
parent fe4495cac0
commit 724e6cb638

View file

@ -1249,7 +1249,7 @@ void GlobalOptionsDialog::open() {
Common::String extraPath(ConfMan.get("extrapath", _domain)); Common::String extraPath(ConfMan.get("extrapath", _domain));
if (savePath.empty() || !ConfMan.hasKey("savepath", _domain)) { if (savePath.empty() || !ConfMan.hasKey("savepath", _domain)) {
_savePath->setLabel(_c("None", "path")); _savePath->setLabel(_("Default"));
} else { } else {
_savePath->setLabel(savePath); _savePath->setLabel(savePath);
} }
@ -1293,7 +1293,7 @@ void GlobalOptionsDialog::open() {
void GlobalOptionsDialog::close() { void GlobalOptionsDialog::close() {
if (getResult()) { if (getResult()) {
Common::String savePath(_savePath->getLabel()); Common::String savePath(_savePath->getLabel());
if (!savePath.empty() && (savePath != _c("None", "path"))) if (!savePath.empty() && (savePath != _("Default")))
ConfMan.set("savepath", savePath, _domain); ConfMan.set("savepath", savePath, _domain);
else else
ConfMan.removeKey("savepath", _domain); ConfMan.removeKey("savepath", _domain);
@ -1411,7 +1411,7 @@ void GlobalOptionsDialog::handleCommand(CommandSender *sender, uint32 cmd, uint3
_extraPath->setLabel(_c("None", "path")); _extraPath->setLabel(_c("None", "path"));
break; break;
case kSavePathClearCmd: case kSavePathClearCmd:
_savePath->setLabel(_c("None", "path")); _savePath->setLabel(_("Default"));
break; break;
case kChooseSoundFontCmd: { case kChooseSoundFontCmd: {
BrowserDialog browser(_("Select SoundFont"), false); BrowserDialog browser(_("Select SoundFont"), false);