forked from len0rd/rockbox
FS#13448: Ignore directories with 'talkclips.ignore' file
Mirrors the functionality of the command-line 'voice.pl' script. Change-Id: Ifd84e4ccb19e0330d701fb835990d6ae2ddc8d11
This commit is contained in:
parent
e0b34a5c4d
commit
2b7b4c24d5
1 changed files with 6 additions and 1 deletions
|
@ -143,6 +143,12 @@ bool TalkFileCreator::createTalkList(QDir startDir)
|
||||||
if(!dir.dirName().isEmpty() && m_talkFolders)
|
if(!dir.dirName().isEmpty() && m_talkFolders)
|
||||||
{
|
{
|
||||||
// check if we should ignore it
|
// 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"))
|
if(m_generateOnlyNew && QFileInfo::exists(dir.path() + "/_dirname.talk"))
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
|
@ -302,4 +308,3 @@ void TalkFileCreator::abort()
|
||||||
m_abort = true;
|
m_abort = true;
|
||||||
emit aborted();
|
emit aborted();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue