diff options
Diffstat (limited to 'smdirmodel.cpp')
-rw-r--r-- | smdirmodel.cpp | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/smdirmodel.cpp b/smdirmodel.cpp index 73ae0c5..32bc241 100644 --- a/smdirmodel.cpp +++ b/smdirmodel.cpp @@ -135,11 +135,6 @@ void SmDirModel::setDir(const QString &dir){ mWatch->setDir(mCurrentDir); } -void SmDirModel::setDirNoProgress(const QString &dir){ - mCurrentDir = dir; - mWatch->setDir(mCurrentDir, false); -} - void SmDirModel::dirEvent(const QList<QVariant> &data, int e){ if(e == SmDirWatcher::Added){ /* for some reason SmTreeModel::addRow() doesn't work, @@ -177,7 +172,7 @@ void SmDirModel::readSettings(){ interval *= 1000; mRefreshTimer->setInterval(interval); mRefreshTimer->start(); - connect(mRefreshTimer, SIGNAL(timeout()), this, SLOT(refreshNoProgress())); + connect(mRefreshTimer, SIGNAL(timeout()), this, SLOT(refresh())); } bool expensive = s.value("ui/expensiveops", true).toBool(); mWatch->setExpensiveOps(expensive); @@ -187,13 +182,8 @@ void SmDirModel::refresh(){ setDir(mCurrentDir); } -void SmDirModel::refreshNoProgress(){ - setDirNoProgress(mCurrentDir); -} - void SmDirModel::populate(SmTreeItem *root){ setRoot(root); - //mWatch->startAsyncJobs(); emit needResize(); } |