X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/56cc1400c7f760c95a057a24b9475b0437e107b9..be7a101366995b7b7bb76e3d5b1e7dd8fc9a1af8:/src/generic/filedlgg.cpp diff --git a/src/generic/filedlgg.cpp b/src/generic/filedlgg.cpp index 2bd623bd8c..efc8f3e290 100644 --- a/src/generic/filedlgg.cpp +++ b/src/generic/filedlgg.cpp @@ -253,24 +253,25 @@ wxString wxFileData::GetHint() const { wxString s = m_filePath; s += wxT(" "); + if (IsDir()) - s += wxT(" "); + s += _(""); else if (IsLink()) - s += wxT(" "); + s += _(""); else if (IsDrive()) + s += _(""); + else // plain file + s += wxString::Format( _("%ld bytes"), m_size ); + + s += wxT(' '); + + if ( !IsDrive() ) { - s += wxT(" "); - return s; - } - else - { - s += wxString::Format( "%ld", m_size ); - s += wxT(" bytes "); + s << GetModificationTime() + << wxT(" ") + << m_permissions; } - s += GetModificationTime(); - s += wxT(" "); - s += m_permissions; return s; };