Opened 13 years ago

Closed 13 years ago

Last modified 13 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:
Cc:

Description

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 13 years ago.
Fix

Download all attachments as: .zip

Change History (4)

Changed 13 years ago by rudi

Attachment: qdir.diff added

Fix

comment:1 Changed 13 years ago by rudi

Note that this bug also affects QMake.

comment:2 Changed 13 years ago by Dmitry A. Kuminov

Resolution: fixed
Status: newclosed

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 13 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.

Version 0, edited 13 years ago by rudi (next)
Note: See TracTickets for help on using tickets.