OpenToonz - An open-source full-featured 2D animation creation software
C
add warning popup for duplicate command on xsheet (#2447)
shun-iwasawa693c7c1f628b
diff --git a/toonz/sources/toonz/cellselection.cpp b/toonz/sources/toonz/cellselection.cppindex 15a0e5d17..3c23b5ee5 100644--- a/toonz/sources/toonz/cellselection.cpp+++ b/toonz/sources/toonz/cellselection.cpp@@ -1911,7 +1911,13 @@ void TCellSelection::pasteKeyframesInto() {//-----------------------------------------------------------------------------void TCellSelection::duplicateFrame() {- if (!Preferences::instance()->isSyncLevelRenumberWithXsheetEnabled()) return;+ if (!Preferences::instance()->isSyncLevelRenumberWithXsheetEnabled()) {+ DVGui::warning(+ QObject::tr("Please enable \"Sync Level Strip Drawing Number Changes "+ "with the XSheet\" preference option\nto use the duplicate "+ "command in the xsheet / timeline."));+ return;+ }TXsheet *xsh = TApp::instance()->getCurrentXsheet()->getXsheet();// TApp::instance()->getCurrentScene()->getScene()->g@@ -1919,11 +1925,12 @@ void TCellSelection::duplicateFrame() {getSelectedCells(r0, c0, r1, c1);// check for cases that won't workif (c1 > c0) {- DVGui::error("Please select only one layer to duplicate a frame.");+ DVGui::error(+ QObject::tr("Please select only one layer to duplicate a frame."));return;}if (r1 > r0) {- DVGui::error("Please select only one frame to duplicate.");+ DVGui::error(QObject::tr("Please select only one frame to duplicate."));return;}