mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 04:52:59 +01:00
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
This commit is contained in:
parent
1f4fdb70f0
commit
37f070f564
@ -24,10 +24,10 @@ static int noui_ThreadSafeMessageBox(const std::string& message, const std::stri
|
|||||||
strCaption += _("Information");
|
strCaption += _("Information");
|
||||||
break;
|
break;
|
||||||
default:
|
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());
|
fprintf(stderr, "%s: %s\n", strCaption.c_str(), message.c_str());
|
||||||
return 4;
|
return 4;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user