summaryrefslogtreecommitdiffstats
path: root/torrentwidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'torrentwidget.cpp')
-rw-r--r--torrentwidget.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/torrentwidget.cpp b/torrentwidget.cpp
index 8cdbca1..a118df1 100644
--- a/torrentwidget.cpp
+++ b/torrentwidget.cpp
@@ -166,9 +166,6 @@ void TorrentWidget::gatherData(){
q.prepare("SELECT COUNT(*) FROM metadata WHERE tsubject = :fn");
QDir d(mDir->text());
QFileInfoList fl = d.entryInfoList(QStringList() << mExt, QDir::Files, QDir::Name);
- mProgressBar->reset();
- mProgressBar->setMinimum(0);
- mProgressBar->setMaximum(fl.count() - 1);
if(fl.count() > 100){
QString msg = QString(tr("<p>Looking at %1 files could take a while</p><p>Do you really want to continue</p>")).arg(QString::number(fl.count()));
int retval = QMessageBox::question(this, tr("Continue"), msg);
@@ -176,7 +173,6 @@ void TorrentWidget::gatherData(){
return;
}
}
- int count = 0;
mFileView->setSortingEnabled(false);
mModel->clear();
QStandardItem *root = mModel->invisibleRootItem();
@@ -213,7 +209,6 @@ void TorrentWidget::gatherData(){
fData[NameColumn]->setForeground(redBrush);
}
root->appendRow(fData);
- mProgressBar->setValue(++count);
}
qApp->processEvents();
mFileView->setSortingEnabled(true);