summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDominik Wenger <domonoky@googlemail.com>2008-06-28 16:44:59 +0000
committerDominik Wenger <domonoky@googlemail.com>2008-06-28 16:44:59 +0000
commit9c84070c8a56b89b32c92eeca06154ac6ad927a5 (patch)
tree2a6b1643c2cb52fe3d13d2fba967939c02b1ebd3
parentdb00c568c92a1021f35d639ef9e896acf5a6af3b (diff)
downloadrockbox-9c84070c8a56b89b32c92eeca06154ac6ad927a5.tar.gz
rockbox-9c84070c8a56b89b32c92eeca06154ac6ad927a5.tar.bz2
rockbox-9c84070c8a56b89b32c92eeca06154ac6ad927a5.zip
rbutil: Add generated voicefiles to the install log, so you can uninstall it again
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17839 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--rbutil/rbutilqt/voicefile.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/rbutil/rbutilqt/voicefile.cpp b/rbutil/rbutilqt/voicefile.cpp
index f949839cf1..008a85505b 100644
--- a/rbutil/rbutilqt/voicefile.cpp
+++ b/rbutil/rbutilqt/voicefile.cpp
@@ -74,7 +74,7 @@ bool VoiceFileCreator::createVoiceFile(ProgressloggerInterface* logger)
{
version = line.remove("Version:").trimmed();
version = version.left(version.indexOf("-")).remove(0,1);
- }
+ }
}
info.close();
@@ -286,7 +286,14 @@ void VoiceFileCreator::downloadDone(bool error)
{
QFile::remove(mp3files.at(i));
}
-
+
+ // Add Voice file to the install log
+ QSettings installlog(m_mountpoint + "/.rockbox/rbutil.log", QSettings::IniFormat, 0);
+ installlog.beginGroup("selfcreated Voice");
+ installlog.setValue("/.rockbox/langs/" + m_lang + ".voice",QDate::currentDate().toString("yyyyMMdd"));
+ installlog.endGroup();
+ installlog.sync();
+
m_logger->setProgressMax(100);
m_logger->setProgressValue(100);
m_logger->addItem(tr("successfully created."),LOGOK);