]> granicus.if.org Git - transmission/commitdiff
fix r14062 regression reported by x190 in https://trac.transmissionbt.com/ticket...
authorJordan Lee <jordan@transmissionbt.com>
Sat, 13 Apr 2013 12:22:07 +0000 (12:22 +0000)
committerJordan Lee <jordan@transmissionbt.com>
Sat, 13 Apr 2013 12:22:07 +0000 (12:22 +0000)
qt/freespace-label.cc

index 44b0988dc30575d973156f95ddfe9daa30be2237..ec98576c380dc28c141f19fa0564e1737cc3ec68 100644 (file)
@@ -83,6 +83,8 @@ FreespaceLabel :: onSessionExecuted (int64_t tag, const QString& result, struct
   tr_variantDictFindInt (arguments, TR_KEY_size_bytes, &bytes);
   if (bytes >= 0)
     setText (tr("%1 free").arg(Formatter::sizeToString (bytes)));
+  else
+    setText ("");
 
   // update the tooltip
   size_t len = 0;