Comment(s) from r2281

This commit is contained in:
David Sansome 2010-11-23 23:10:53 +00:00
parent 83948e4973
commit 9a8d01e2bd
1 changed files with 27 additions and 25 deletions

View File

@ -138,6 +138,7 @@ bool IcecastBackend::IsEmpty() {
}
void IcecastBackend::ClearAndAddStations(const StationList& stations) {
{
QMutexLocker l(db_->Mutex());
QSqlDatabase db = db_->Connect();
ScopedTransaction t(&db);
@ -167,6 +168,7 @@ void IcecastBackend::ClearAndAddStations(const StationList& stations) {
}
t.Commit();
}
emit DatabaseReset();
}