diff options
author | Philip Kaufmann <phil.kaufmann@t-online.de> | 2013-01-02 15:09:24 +0100 |
---|---|---|
committer | Philip Kaufmann <phil.kaufmann@t-online.de> | 2013-01-06 03:47:10 +0100 |
commit | 37f070f564b425f62f95a76383d475eabb2b4aff (patch) | |
tree | d70a6aa834eb92a710a45bb215df370cd2b40335 /src | |
parent | 1f4fdb70f0c5791a4742aa8f59fc42cff9740cfc (diff) |
update noui_ThreadSafeMessageBox function to use strCaption
- ensure we use strCaption for printf and fprintf, as before it could
happen to have an error message in the debug.log, which had no "Error"
(or whatever) in front
Diffstat (limited to 'src')
-rw-r--r-- | src/noui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/noui.cpp b/src/noui.cpp index 204e76aba7..96a8de4ee9 100644 --- a/src/noui.cpp +++ b/src/noui.cpp @@ -24,10 +24,10 @@ static int noui_ThreadSafeMessageBox(const std::string& message, const std::stri strCaption += _("Information"); break; default: - strCaption += caption; // Use supplied caption + strCaption += caption; // Use supplied caption (can be empty) } - printf("%s: %s\n", caption.c_str(), message.c_str()); + printf("%s: %s\n", strCaption.c_str(), message.c_str()); fprintf(stderr, "%s: %s\n", strCaption.c_str(), message.c_str()); return 4; } |