[gnome-sound-recorder] trivial: If the media type cannot be determined label it as "Unknown"



commit 8cfa8cc528e56d67d50c71a762485aa21b1dc539
Author: Miguel Vaello Martínez <miguel vaellomartinez gmail com>
Date:   Wed May 25 22:21:14 2016 +0200

    trivial: If the media type cannot be determined label it as "Unknown"
    
    In rare cases, intead leave le field empty is better to
    known that cannot be determined and keep the user informed
    about the "error" with a "Unknown" message.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=766885
    
    Signed-off-by: Meg Ford <megford gnome org>

 src/info.js |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/info.js b/src/info.js
index c6a4535..5a4e298 100644
--- a/src/info.js
+++ b/src/info.js
@@ -148,8 +148,8 @@ const InfoDialog = new Lang.Class({
             grid.attach_next_to(this._dateCreatedData, this._dateCreatedLabel, Gtk.PositionType.RIGHT, 2, 1);
         }
 
-        // Document type value
-        this._mediaTypeData = new Gtk.Label({ label: fileName.mediaType,
+        // Media type data
+        this._mediaTypeData = new Gtk.Label({ label: fileName.mediaType || _("Unknown"),
                                               halign: Gtk.Align.START });
         grid.attach_next_to(this._mediaTypeData, this._mediaType, Gtk.PositionType.RIGHT, 2, 1);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]