Fix possible issue with queueing

This commit is contained in:
Christophe Dumez 2010-11-15 17:51:58 +00:00
parent df04427c6a
commit 3144bfebc7

View file

@ -2224,7 +2224,7 @@ void QBtSession::readAlerts() {
else if (file_error_alert* p = dynamic_cast<file_error_alert*>(a.get())) {
QTorrentHandle h(p->handle);
if(h.is_valid()) {
h.auto_managed(false);
h.pause();
std::cerr << "File Error: " << p->message().c_str() << std::endl;
addConsoleMessage(tr("An I/O error occured, '%1' paused.").arg(h.name()));
addConsoleMessage(tr("Reason: %1").arg(misc::toQString(p->message())));