From 1f850b8e4e4e29ddb7c1276de201a8470c3bcf7b Mon Sep 17 00:00:00 2001 From: Laserlicht <13953785+Laserlicht@users.noreply.github.com> Date: Sat, 20 Apr 2024 18:57:53 +0200 Subject: [PATCH] fix error with custom campaign --- client/lobby/SelectionTab.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/lobby/SelectionTab.cpp b/client/lobby/SelectionTab.cpp index c5a2cfd9e..5631c9d4d 100644 --- a/client/lobby/SelectionTab.cpp +++ b/client/lobby/SelectionTab.cpp @@ -678,7 +678,7 @@ void SelectionTab::selectFileName(std::string fname) filter(-1); selectAbs(-1); - if(inputName->getText().empty()) + if(tabType == ESelectionScreen::saveGame && inputName->getText().empty()) inputName->setText("NEWGAME"); }