mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-27 22:49:25 +02:00
netpacks for renaming
This commit is contained in:
@@ -91,6 +91,9 @@ void CTextInputWithConfirm::textInputted(const std::string & enteredText)
|
||||
|
||||
void CTextInputWithConfirm::confirm()
|
||||
{
|
||||
if(getText().empty())
|
||||
setText(initialText);
|
||||
|
||||
if(confirmCb && initialText != getText())
|
||||
confirmCb();
|
||||
removeFocus();
|
||||
|
||||
Reference in New Issue
Block a user