]> git.sur5r.net Git - bacula/bacula/commitdiff
Insert the slot field as a numeric field.
authorMarco van Wieringen <mvw@planets.elm.net>
Thu, 16 Feb 2012 21:08:06 +0000 (22:08 +0100)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:50:32 +0000 (14:50 +0200)
The sorting in mediaview doesn't work well as the slot
field is added as a text field not a numeric field.

bacula/src/qt-console/medialist/mediaview.cpp

index 6f8f28240daa53e563e28743dbd5dbd40d59fa08..6c316879642fd9ec62f3813f9c5424969d7885c6 100644 (file)
@@ -351,7 +351,7 @@ void MediaView::populateTable()
          mediaitem.setInChanger(index++, fld.next());
 
          Slot = fld.next();            // Slot
-         mediaitem.setTextFld(index++, Slot);
+         mediaitem.setNumericFld(index++, Slot);
 
          MediaType = fld.next();
          VolStatus = fld.next();