Changeset 14062


Ignore:
Timestamp:
Apr 10, 2013, 3:05:31 AM (9 years ago)
Author:
jordan
Message:

(qt) if freespace can't be determined, don't show it in the label. reported by rb07 in https://trac.transmissionbt.com/ticket/4076#comment:45

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/qt/freespace-label.cc

    r14033 r14062  
    8282  int64_t bytes = -1;
    8383  tr_variantDictFindInt (arguments, TR_KEY_size_bytes, &bytes);
    84   if (bytes < 0)
    85     str = tr("<i>Error: %1</i>").arg(result);
    86   else
    87     str = tr("%1 free").arg(Formatter::sizeToString (bytes));
    88   setText (str);
     84  if (bytes >= 0)
     85    setText (tr("%1 free").arg(Formatter::sizeToString (bytes)));
    8986
    9087  // update the tooltip
Note: See TracChangeset for help on using the changeset viewer.