mirror of https://github.com/BOINC/boinc.git
*** empty log message ***
svn path=/trunk/boinc/; revision=11840
This commit is contained in:
parent
38bac51970
commit
6125d03dd2
|
@ -455,3 +455,10 @@ David 11 Jan 2007
|
|||
cache.inc
|
||||
project.sample/
|
||||
cache_parameters.inc
|
||||
|
||||
David 11 Jan 2007
|
||||
- manager: use user-friendly app names (fix to work w/ 5.4.11)
|
||||
|
||||
clientgui/
|
||||
ViewWork.cpp
|
||||
ViewWorkGrid.cpp
|
||||
|
|
|
@ -596,9 +596,14 @@ wxInt32 CViewWork::FormatApplicationName(wxInt32 item, wxString& strBuffer) cons
|
|||
|
||||
wxString strLocale = wxString(setlocale(LC_NUMERIC, NULL), wxConvUTF8);
|
||||
setlocale(LC_NUMERIC, "C");
|
||||
char buf[256];
|
||||
strcpy(buf, state_result->wup->app->user_friendly_name.c_str());
|
||||
if (!strlen(buf) {
|
||||
strcpy(buf, state_result->wup->avp->app_name.c_str());
|
||||
}
|
||||
strBuffer.Printf(
|
||||
wxT("%s %.2f"),
|
||||
wxString(state_result->wup->app->user_friendly_name.c_str(), wxConvUTF8).c_str(),
|
||||
wxString(buf, wxConvUTF8).c_str(),
|
||||
state_result->wup->avp->version_num/100.0
|
||||
);
|
||||
setlocale(LC_NUMERIC, (const char*)strLocale.mb_str());
|
||||
|
|
|
@ -512,9 +512,14 @@ wxInt32 CViewWorkGrid::FormatApplicationName(wxInt32 item, wxString& strBuffer)
|
|||
|
||||
wxString strLocale = wxString(setlocale(LC_NUMERIC, NULL), wxConvUTF8);
|
||||
setlocale(LC_NUMERIC, "C");
|
||||
char buf[256];
|
||||
strcpy(buf, state_result->wup->app->user_friendly_name.c_str());
|
||||
if (!strlen(buf) {
|
||||
strcpy(buf, state_result->wup->avp->app_name.c_str());
|
||||
}
|
||||
strBuffer.Printf(
|
||||
wxT(" %s %.2f"),
|
||||
wxString(state_result->wup->app->user_friendly_name.c_str(), wxConvUTF8).c_str(),
|
||||
wxString(buf, wxConvUTF8).c_str(),
|
||||
state_result->wup->avp->version_num/100.0
|
||||
);
|
||||
setlocale(LC_NUMERIC, (const char*)strLocale.mb_str());
|
||||
|
|
Loading…
Reference in New Issue