mirror of
https://github.com/twisterarmy/twister-core.git
synced 2025-01-23 13:04:17 +00:00
Merge pull request #2143 from Diapolo/ThreadSafeMessageBox_caption
update ThreadSafeMessageBox function to use strCaption
This commit is contained in:
commit
13013f5044
@ -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…
x
Reference in New Issue
Block a user