mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-23 18:32:55 +00:00
compare the clean paths of QStatInfo
to match what QFileInfo does Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
e7f4a300ec
commit
55dcf19183
1 changed files with 3 additions and 2 deletions
|
@ -22,6 +22,7 @@
|
|||
#include "qcore_unix_p.h"
|
||||
#include "qelapsedtimer.h"
|
||||
#include "qbytearray.h"
|
||||
#include "qdir.h"
|
||||
#include "qfilesystemmetadata_p.h"
|
||||
#include "qdebug.h"
|
||||
|
||||
|
@ -88,10 +89,10 @@ bool QStatInfo::operator==(const QStatInfo &other) const
|
|||
{
|
||||
if (m_mode != other.m_mode || m_uid != other.m_uid
|
||||
|| m_gid != other.m_gid || m_mtime != other.m_mtime
|
||||
|| m_size != other.m_size) {
|
||||
|| m_size != other.m_size || m_entries != other.m_entries) {
|
||||
return false;
|
||||
}
|
||||
return (m_entries == other.m_entries && m_path == other.m_path);
|
||||
return (QDir::cleanPath(m_path) == QDir::cleanPath(other.m_path));
|
||||
}
|
||||
|
||||
bool QStatInfo::isReadable() const
|
||||
|
|
Loading…
Add table
Reference in a new issue