Merge latest fixes from stable branch

This commit is contained in:
Christophe Dumez 2010-06-03 20:08:19 +00:00
commit 4e1366bf0d
8 changed files with 69 additions and 29 deletions

View file

@ -763,9 +763,14 @@ void TransferListWidget::openSelectedTorrentsFolder() const {
const QTorrentHandle &h = BTSession->getTorrentHandle(hash);
if(h.is_valid()) {
const QString &savePath = h.root_path();
qDebug("Opening path at %s", qPrintable(savePath));
if(!pathsList.contains(savePath)) {
pathsList.append(savePath);
#ifdef Q_WS_WIN
QDesktopServices::openUrl(QUrl(QString("file:///")+savePath));
#else
QDesktopServices::openUrl(QUrl(QString("file://")+savePath));
#endif
}
}
}