Fix cache path selection on Windows only allowing to select drives (FS#10013 by Yoshihisa Uchida).

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20319 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Dominik Riebeling 2009-03-13 16:53:28 +00:00
parent 85317f4bf9
commit 42483bacc8

View file

@ -518,7 +518,7 @@ void Config::browseCache()
#if defined(Q_OS_LINUX) || defined(Q_OS_MACX)
cbrowser->setFilter(QDir::AllDirs | QDir::NoDotAndDotDot | QDir::NoSymLinks);
#elif defined(Q_OS_WIN32)
cbrowser->setFilter(QDir::Drives);
cbrowser->setFilter(QDir::Drives | QDir::AllDirs | QDir::NoDotAndDotDot);
#endif
cbrowser->setDir(ui.cachePath->text());
connect(cbrowser, SIGNAL(itemChanged(QString)), this, SLOT(setCache(QString)));