Ticket #287: capitalize-drive-letter2.diff
File capitalize-drive-letter2.diff, 776 bytes (added by , 11 years ago) |
---|
-
src/gui/dialogs/qfilesystemmodel.cpp
363 363 else 364 364 absolutePath = QDir(longPath).absolutePath(); 365 365 366 #ifdef Q_OS_OS2 367 if (absolutePath.length() >= 2 && absolutePath.at(0).isLetter() && absolutePath.at(1) == QLatin1Char(':')) 368 absolutePath[0] = absolutePath.at(0).toUpper(); // capital drive letters 369 #endif 370 366 371 QStringList pathElements = absolutePath.split(QLatin1Char('/'), QString::SkipEmptyParts); 367 372 if ((pathElements.isEmpty()) 368 373 #if (!defined(Q_OS_WIN) || defined(Q_OS_WINCE)) && !defined(Q_OS_SYMBIAN) && !defined(Q_OS_OS2)