diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2024-07-20 11:23:34 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2024-07-20 11:24:15 -0400 |
commit | 2b7b4c24d50ccdaf0efcf2aafd6150c954a82c4c (patch) | |
tree | f8869b14d04e9e147b2a4a7b0f88916a3681933e | |
parent | e0b34a5c4d5d214b03decbd6420d4c0a38700f49 (diff) | |
download | rockbox-2b7b4c24d50ccdaf0efcf2aafd6150c954a82c4c.tar.gz rockbox-2b7b4c24d50ccdaf0efcf2aafd6150c954a82c4c.zip |
FS#13448: Ignore directories with 'talkclips.ignore' file
Mirrors the functionality of the command-line 'voice.pl' script.
Change-Id: Ifd84e4ccb19e0330d701fb835990d6ae2ddc8d11
-rw-r--r-- | utils/rbutilqt/base/talkfile.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
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) | |||
143 | if(!dir.dirName().isEmpty() && m_talkFolders) | 143 | if(!dir.dirName().isEmpty() && m_talkFolders) |
144 | { | 144 | { |
145 | // check if we should ignore it | 145 | // check if we should ignore it |
146 | if(QFileInfo::exists(dir.path() + "/talkclips.ignore")) | ||
147 | { | ||
148 | continue; | ||
149 | } | ||
150 | |||
151 | // check to see if it's already covered | ||
146 | if(m_generateOnlyNew && QFileInfo::exists(dir.path() + "/_dirname.talk")) | 152 | if(m_generateOnlyNew && QFileInfo::exists(dir.path() + "/_dirname.talk")) |
147 | { | 153 | { |
148 | continue; | 154 | continue; |
@@ -302,4 +308,3 @@ void TalkFileCreator::abort() | |||
302 | m_abort = true; | 308 | m_abort = true; |
303 | emit aborted(); | 309 | emit aborted(); |
304 | } | 310 | } |
305 | |||