Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#223 closed defect (fixed)

QDir::cleanPath() broken

Reported by: rudi Owned by:
Priority: major Milestone: Qt 4.7
Component: QtCore Version:
Severity: high Keywords:


Currently QDir::cleanPath() strips trailing separators from root directories. This due to a #ifdef thatwas not present in 4.6.

Attachments (1)

qdir.diff (573 bytes) - added by rudi 8 years ago.

Download all attachments as: .zip

Change History (4)

Changed 8 years ago by rudi


comment:1 Changed 8 years ago by rudi

Note that this bug also affects QMake.

comment:2 Changed 8 years ago by dmik

  • Resolution set to fixed
  • Status changed from new to closed

Thanks. Committed in r883.

Just for my info, could you please tell how did this affect QMake? I didn't notice any problems.

comment:3 Changed 8 years ago by rudi

The problem arises when QMake is requested to create output directories using MakefileGenerator::mkdir(). Due to QDir::cd() behaving weird with this bug, subdirs got created in the root instead of relative to the current dir. This happened when building QtCreator?. I didn't see it with Qt itself.

Last edited 8 years ago by rudi (previous) (diff)
Note: See TracTickets for help on using tickets.