Fix error message in new torrent addition dialog when a torrent is invalid

This commit is contained in:
Christophe Dumez 2012-05-20 14:17:24 +03:00
parent e6e2baf3a8
commit 600c33dfa3
72 changed files with 8718 additions and 8190 deletions

View file

@ -148,7 +148,7 @@ bool AddNewTorrentDialog::loadTorrent(const QString& torrent_path, const QString
m_torrentInfo = new torrent_info(m_filePath.toUtf8().data());
m_hash = misc::toQString(m_torrentInfo->info_hash());
} catch(const std::exception& e) {
QMessageBox::critical(0, tr("Invalid torrent"), tr("Failed to load the torrent: &1").arg(e.what()));
QMessageBox::critical(0, tr("Invalid torrent"), tr("Failed to load the torrent: %1").arg(e.what()));
return false;
}