mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-15 20:03:15 +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:
@@ -1011,7 +1011,7 @@ void MainWindow::onSelectionMade(int level, bool anythingSelected)
|
|||||||
{
|
{
|
||||||
if (level == mapLevel)
|
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);
|
setStatusMessage(info);
|
||||||
|
|
||||||
ui->actionErase->setEnabled(anythingSelected);
|
ui->actionErase->setEnabled(anythingSelected);
|
||||||
|
Reference in New Issue
Block a user