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.
This commit is contained in:
2016-11-12 15:05:05 +01:00
parent 27905b9acf
commit 5443cc274c

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());