(svn r17928) -Codechange: ShowErrorMessage() now takes the summary string before the details string.
Gentlemen, swap your string parameters.
This commit is contained in:
@@ -1282,7 +1282,7 @@ public:
|
||||
case SCMFW_WIDGET_LOAD:
|
||||
this->face = _company_manager_face;
|
||||
ScaleAllCompanyManagerFaceBits(this->face);
|
||||
ShowErrorMessage(INVALID_STRING_ID, STR_FACE_LOAD_DONE, 0, 0);
|
||||
ShowErrorMessage(STR_FACE_LOAD_DONE, INVALID_STRING_ID, 0, 0);
|
||||
this->UpdateData();
|
||||
this->SetDirty();
|
||||
break;
|
||||
@@ -1296,7 +1296,7 @@ public:
|
||||
/* Save button */
|
||||
case SCMFW_WIDGET_SAVE:
|
||||
_company_manager_face = this->face;
|
||||
ShowErrorMessage(INVALID_STRING_ID, STR_FACE_SAVE_DONE, 0, 0);
|
||||
ShowErrorMessage(STR_FACE_SAVE_DONE, INVALID_STRING_ID, 0, 0);
|
||||
break;
|
||||
|
||||
/* Toggle gender (male/female) button */
|
||||
@@ -1372,11 +1372,11 @@ public:
|
||||
if (!StrEmpty(str)) {
|
||||
this->face = strtoul(str, NULL, 10);
|
||||
ScaleAllCompanyManagerFaceBits(this->face);
|
||||
ShowErrorMessage(INVALID_STRING_ID, STR_FACE_FACECODE_SET, 0, 0);
|
||||
ShowErrorMessage(STR_FACE_FACECODE_SET, INVALID_STRING_ID, 0, 0);
|
||||
this->UpdateData();
|
||||
this->SetDirty();
|
||||
} else {
|
||||
ShowErrorMessage(INVALID_STRING_ID, STR_FACE_FACECODE_ERR, 0, 0);
|
||||
ShowErrorMessage(STR_FACE_FACECODE_ERR, INVALID_STRING_ID, 0, 0);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user