X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4f5c180eba88f20438789e1a84a435ed8615fbff..9a595736d07382f41ab09bacdd692fe9a4cad894:/src/generic/filedlgg.cpp?ds=sidebyside diff --git a/src/generic/filedlgg.cpp b/src/generic/filedlgg.cpp index 9af9c6d17f..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 += LongToString( m_size ); - s += wxT(" bytes "); + s << GetModificationTime() + << wxT(" ") + << m_permissions; } - s += GetModificationTime(); - s += wxT(" "); - s += m_permissions; return s; };