From 3c4906bb4dc0149adbacd4e0b52235f3451de58b Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Tue, 5 Jan 2010 18:48:51 +0000 Subject: [PATCH] - Patch in last commit was wrong --- src/transferlistwidget.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/transferlistwidget.cpp b/src/transferlistwidget.cpp index 016168edc..75dff4e59 100644 --- a/src/transferlistwidget.cpp +++ b/src/transferlistwidget.cpp @@ -919,12 +919,11 @@ void TransferListWidget::removeLabelFromRows(QString label) { for(int i=0; irowCount(); ++i) { if(listModel->data(listModel->index(i, TR_LABEL)) == label) { QString hash = getHashFromRow(i); - QString old_label = proxyModel->data(listModel->index(i, TR_LABEL)).toString(); listModel->setData(listModel->index(i, TR_LABEL), "", Qt::DisplayRole); TorrentPersistentData::saveLabel(hash, ""); emit torrentChangedLabel(label, ""); // Update save path if necessary - BTSession->changeLabelInTorrentSavePath(BTSession->getTorrentHandle(hash), old_label, label); + BTSession->changeLabelInTorrentSavePath(BTSession->getTorrentHandle(hash), label, ""); } } }