From fecdce0c413e7811c83af0769605b147e14d2545 Mon Sep 17 00:00:00 2001 From: Jeremy Bullock Date: Jul 26 2017 05:26:07 +0000 Subject: Fix New Level Name for Vector Level (#1261) --- diff --git a/toonz/sources/toonz/levelcreatepopup.cpp b/toonz/sources/toonz/levelcreatepopup.cpp index 70d8dd1..ccfee44 100644 --- a/toonz/sources/toonz/levelcreatepopup.cpp +++ b/toonz/sources/toonz/levelcreatepopup.cpp @@ -343,8 +343,8 @@ bool LevelCreatePopup::levelExists(std::wstring levelName) { //----------------------------------------------------------------------------- void LevelCreatePopup::showEvent(QShowEvent *) { - nextName(); update(); + nextName(); m_nameFld->setFocus(); if (Preferences::instance()->getUnits() == "pixel") { m_dpiFld->hide(); @@ -480,6 +480,7 @@ bool LevelCreatePopup::apply() { error( tr("The level name specified is already used: please choose a " "different level name")); + m_nameFld->selectAll(); return false; } @@ -492,6 +493,7 @@ bool LevelCreatePopup::apply() { error( tr("The level name specified is already used: please choose a " "different level name")); + m_nameFld->selectAll(); return false; } parentDir = scene->decodeFilePath(parentDir); @@ -617,7 +619,7 @@ void LevelCreatePopup::update() { break; } if (index >= 0) m_levelTypeOm->setCurrentIndex(index); - + /* (old behaviour) TCamera* camera = scene->getCurrentCamera();