X-Git-Url: https://git.sur5r.net/?p=minitube;a=blobdiff_plain;f=src%2Fchannelaggregator.cpp;h=d13779202f50cf714ca63689e96ec0c053931ab1;hp=2fcf42b5d0f8fdca1430e819e78535159477fc3a;hb=9337294c49c89c5cb01db726835da60af566821f;hpb=be5ee6ccd9b29c9d5ca59e4a3d4adf53bac6bc8d diff --git a/src/channelaggregator.cpp b/src/channelaggregator.cpp index 2fcf42b..d137792 100644 --- a/src/channelaggregator.cpp +++ b/src/channelaggregator.cpp @@ -81,9 +81,6 @@ void ChannelAggregator::run() { updatedChannels.clear(); updatedChannels.squeeze(); - if (!Database::instance().getConnection().transaction()) - qWarning() << "Transaction failed" << __PRETTY_FUNCTION__; - processNextChannel(); } @@ -175,9 +172,6 @@ void ChannelAggregator::reallyProcessChannel(YTChannel *channel) { void ChannelAggregator::finish() { currentChannel = 0; - QSqlDatabase db = Database::instance().getConnection(); - if (!db.commit()) qWarning() << "Commit failed" << __PRETTY_FUNCTION__; - #ifdef Q_OS_MAC if (newVideoCount > 0 && unwatchedCount > 0 && mac::canNotify()) { QString channelNames; @@ -207,8 +201,10 @@ void ChannelAggregator::videosLoaded(const QVector