CFileBrowser: use mbrYes as default selection

TODO: 	Re-evaluate the logic of current used messages with risky actions
	and adjust the buttons accordingly.
Reason: <yes> is now as default assigned to green button (traffic light principle), and we use stricktly
	the order of colors from remote control (r,g,g,b), but in some cases
	it is useful to assign the <Yes> button to red for risky actions.


Origin commit data
------------------
Commit: 5443cc274c
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-11-12 (Sat, 12 Nov 2016)
This commit is contained in:
2016-11-12 15:05:05 +01:00
parent 5bb70ba9e9
commit d1b9a4524a

View File

@@ -800,7 +800,7 @@ bool CFileBrowser::exec(const char * const dirname)
_msg << filelist[selected].getFileName();
_msg << " " << g_Locale->getText(LOCALE_FILEBROWSER_DODELETE2);
if (ShowMsg(LOCALE_FILEBROWSER_DELETE, _msg.str(), CMsgBox::mbrNo, CMsgBox::mbYes|CMsgBox::mbNo)==CMsgBox::mbrYes)
if (ShowMsg(LOCALE_FILEBROWSER_DELETE, _msg.str(), CMsgBox::mbrYes, CMsgBox::mbNoYes)==CMsgBox::mbrYes)
{
std::string n = filelist[selected].Name;
recursiveDelete(n.c_str());