Speed-up the BrowseDialog

This commit is contained in:
Tobias Rundstrom 2006-08-25 11:16:09 -04:00
parent 95ff470248
commit 2756d57390
3 changed files with 11 additions and 6 deletions

View file

@ -86,12 +86,12 @@ BrowseModel::list_cb (const Xmms::List< Xmms::Dict > &res)
QString name;
if (d.contains ("name")) {
name = QString::fromStdString ((*res).get<std::string> ("name"));
name = QString::fromStdString (d.get<std::string> ("name"));
} else {
name = path.mid (path.lastIndexOf ("/")+1);
}
bool isdir = (*res).get<int32_t> ("isdir");
bool isdir = d.get<int32_t> ("isdir");
if (m_filter_dot && name.startsWith ("."))
// skip these files
@ -104,6 +104,8 @@ BrowseModel::list_cb (const Xmms::List< Xmms::Dict > &res)
emit dirChanged (m_current_dir);
qDebug ("done");
return true;
}