From 2b7b4c24d50ccdaf0efcf2aafd6150c954a82c4c Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Sat, 20 Jul 2024 11:23:34 -0400 Subject: FS#13448: Ignore directories with 'talkclips.ignore' file Mirrors the functionality of the command-line 'voice.pl' script. Change-Id: Ifd84e4ccb19e0330d701fb835990d6ae2ddc8d11 --- utils/rbutilqt/base/talkfile.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/utils/rbutilqt/base/talkfile.cpp b/utils/rbutilqt/base/talkfile.cpp index aab5fbc29a..f5fae01a85 100644 --- a/utils/rbutilqt/base/talkfile.cpp +++ b/utils/rbutilqt/base/talkfile.cpp @@ -143,6 +143,12 @@ bool TalkFileCreator::createTalkList(QDir startDir) if(!dir.dirName().isEmpty() && m_talkFolders) { // check if we should ignore it + if(QFileInfo::exists(dir.path() + "/talkclips.ignore")) + { + continue; + } + + // check to see if it's already covered if(m_generateOnlyNew && QFileInfo::exists(dir.path() + "/_dirname.talk")) { continue; @@ -302,4 +308,3 @@ void TalkFileCreator::abort() m_abort = true; emit aborted(); } - -- cgit v1.2.3