mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 16:01:10 +02:00
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
------------------
Branch: ni/coolstream
Commit: 5443cc274c
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-11-12 (Sat, 12 Nov 2016)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -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());
|
||||
|
Reference in New Issue
Block a user