~ubuntu-branches/ubuntu/trusty/krusader/trusty

« back to all changes in this revision

Viewing changes to krusader/Panel/krviewitem.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Michał Zając
  • Date: 2011-08-08 13:47:36 UTC
  • mfrom: (1.2.19 upstream)
  • Revision ID: james.westby@ubuntu.com-20110808134736-8e630ivgd2c3sgg5
Tags: 1:2.4.0~beta1-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
 
64
64
QString KrViewItem::description() const
65
65
{
66
 
    if (dummyVfile) return i18n("Climb up the directory tree");
 
66
    if (dummyVfile)
 
67
        return i18n("Climb up the directory tree");
67
68
    // else is implied
68
69
    QString text = _vf->vfile_getName();
69
70
    QString comment;
78
79
 
79
80
    if (_vf->vfile_isSymLink()) {
80
81
        QString tmp;
81
 
        if (_vf->vfile_getMime() == "Broken Link !") tmp = i18n("(broken link!)");
82
 
        else if (comment.isEmpty()) tmp = i18n("Symbolic Link") ;
83
 
        else tmp = i18n("%1 (Link)", comment);
 
82
        if (_vf->vfile_isBrokenLink())
 
83
            tmp = i18n("(Broken Link!)");
 
84
        else if (comment.isEmpty())
 
85
            tmp = i18n("Symbolic Link") ;
 
86
        else
 
87
            tmp = i18n("%1 (Link)", comment);
84
88
 
85
89
        text += "->";
86
90
        text += myLinkDest;