Skip to content

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

C

Skip files converting to same file format

manongjohn890a6ac45c23
diff --git a/toonz/sources/toonz/convertpopup.cpp b/toonz/sources/toonz/convertpopup.cpp
index 7a3cf6492..8701f77f9 100644
--- a/toonz/sources/toonz/convertpopup.cpp
+++ b/toonz/sources/toonz/convertpopup.cpp
@@ -127,7 +127,12 @@ void ConvertPopup::Converter::run() {
m_saveToNopaintOnlyFlag = false;
- if (TSystem::doesExistFileOrLevel(dstFilePath)) {
+ if (dstFilePath == sourceLevelPath) {
+ DVGui::info(tr("Level %1 converting to same file format; skipped.")
+ .arg(levelName));
+ m_skippedCount++;
+ continue;
+ } else if (TSystem::doesExistFileOrLevel(dstFilePath)) {
if (m_parent->m_skip->isChecked()) {
DVGui::info(tr("Level %1 already exists; skipped.").arg(levelName));
m_skippedCount++;