Don't show log info if there are no log entries
authorEnrico Zini <enrico@enricozini.org>
Sun, 28 Mar 2010 00:16:19 +0000 (00:16 +0000)
committerEnrico Zini <enrico@enricozini.org>
Sun, 28 Mar 2010 00:16:19 +0000 (00:16 +0000)
src/app_main.vala

index 0faa7274ba4bb6c9080dc64caea93693db686940..b14b7e51f853c3cd3bcd3f4469d368e23b6dc784 100644 (file)
@@ -442,7 +442,10 @@ public class Log : Gtk.VBox
             ++count;
             return true;
         });
-        l_info.set_text("%d log entries".printf(count));
+        if (count == 0)
+            l_info.set_text("");
+        else
+            l_info.set_text("%d log entries".printf(count));
         l_info_button.set_sensitive(count != 0);
         //zavai.log.Log l = zavai.log.log.load(args[2]);
     }