Comment 1 for bug 1117840

Revision history for this message
Roland RĂ¼denauer (roland-ruedenauer) wrote :

Image Writer searches almost any subdirectory of my home directory for the Downloads folder. Sure, this may take some time.
The search should be restricted to only immediate subdirectories by replacting QDirIterator::Subdirectories with QDirIterator::NoIteratorFlags.

Even better would be using the SHGetKnownFolderPath API call:

if (SUCCEEDED( SHGetKnownFolderPath( FOLDERID_Downloads, KF_FLAG_NO_ALIAS, 0, &pPath)) )
    myHomeDir = QString::fromWCharArray( pPath );
    CoTaskMemFree( pPath );