1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-12 02:28:11 +02:00

Merge pull request #1109 from trofi/fix-format-string

mapeditor/mainwindow.cpp: use '%s' (not '%b') for string formatter
This commit is contained in:
Andrii Danylchenko 2022-11-07 14:06:56 +02:00 committed by GitHub
commit 55914290ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1011,7 +1011,7 @@ void MainWindow::onSelectionMade(int level, bool anythingSelected)
{
if (level == mapLevel)
{
auto info = QString::asprintf("Selection on layer %d: %b", level, anythingSelected ? "true" : "false");
auto info = QString::asprintf("Selection on layer %d: %s", level, anythingSelected ? "true" : "false");
setStatusMessage(info);
ui->actionErase->setEnabled(anythingSelected);