mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-11 13:13:49 +01:00
Drop MSG_NOPREFIX flag
Since bilingual_str type is fully supported, the MSG_NOPREFIX flag is no longer needed.
This commit is contained in:
28
src/noui.cpp
28
src/noui.cpp
@@ -23,24 +23,20 @@ bool noui_ThreadSafeMessageBox(const bilingual_str& message, const std::string&
|
||||
{
|
||||
bool fSecure = style & CClientUIInterface::SECURE;
|
||||
style &= ~CClientUIInterface::SECURE;
|
||||
bool prefix = !(style & CClientUIInterface::MSG_NOPREFIX);
|
||||
style &= ~CClientUIInterface::MSG_NOPREFIX;
|
||||
|
||||
std::string strCaption;
|
||||
if (prefix) {
|
||||
switch (style) {
|
||||
case CClientUIInterface::MSG_ERROR:
|
||||
strCaption = "Error: ";
|
||||
break;
|
||||
case CClientUIInterface::MSG_WARNING:
|
||||
strCaption = "Warning: ";
|
||||
break;
|
||||
case CClientUIInterface::MSG_INFORMATION:
|
||||
strCaption = "Information: ";
|
||||
break;
|
||||
default:
|
||||
strCaption = caption + ": "; // Use supplied caption (can be empty)
|
||||
}
|
||||
switch (style) {
|
||||
case CClientUIInterface::MSG_ERROR:
|
||||
strCaption = "Error: ";
|
||||
break;
|
||||
case CClientUIInterface::MSG_WARNING:
|
||||
strCaption = "Warning: ";
|
||||
break;
|
||||
case CClientUIInterface::MSG_INFORMATION:
|
||||
strCaption = "Information: ";
|
||||
break;
|
||||
default:
|
||||
strCaption = caption + ": "; // Use supplied caption (can be empty)
|
||||
}
|
||||
|
||||
if (!fSecure) {
|
||||
|
||||
Reference in New Issue
Block a user