Ignore:
Timestamp:
Mar 4, 2010, 1:07:55 AM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

gui: Don't hide valid drive letters with no media inserted from QFileDialog.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gui/dialogs/qfilesystemmodel.cpp

    r606 r627  
    17781778            node->fileName = fileName;
    17791779        }
    1780 
     1780#ifdef Q_OS_OS2
     1781        // remove the invalid (non-existent) file unless it's a drive letter
     1782        // (note that QFileInfoGatherer doesn't report invalid drive letters so
     1783        // info.size() = -1 usually means that there is no media inserted etc.,
     1784        // which is not a sufficient reason to hide the drive from the view)
     1785        if (info.size() == -1 && parentNode != &root) {
     1786#else
    17811787        if (info.size() == -1) {
     1788
    17821789            removeNode(parentNode, fileName);
    17831790            continue;
Note: See TracChangeset for help on using the changeset viewer.