Skip to content

OpenToonz - An open-source full-featured 2D animation creation software

C

Level Settings Popup: removed name unchanged warning and set focus on other errors (#686)

Jeremy Bullock2a416897a209
diff --git a/toonz/sources/toonz/levelsettingspopup.cpp b/toonz/sources/toonz/levelsettingspopup.cpp
index 993b58b9e..d973c6166 100644
--- a/toonz/sources/toonz/levelsettingspopup.cpp
+++ b/toonz/sources/toonz/levelsettingspopup.cpp
@@ -661,12 +661,13 @@ void LevelSettingsPopup::onNameChanged() {
error("The name " + text +
" you entered for the level is not valid.\n Please enter a different "
"name.");
+ m_nameFld->setFocus();
return;
}
/*-- Level名に変更がない場合 --*/
if (level->getName() == text.toStdWString()) {
- warning("Level name unchanged.");
+ // warning("Level name unchanged.");
return;
}
@@ -677,6 +678,7 @@ void LevelSettingsPopup::onNameChanged() {
error("The name " + text +
" you entered for the level is already used.\nPlease enter a "
"different name.");
+ m_nameFld->setFocus();
return;
}