From: Marco van Wieringen Date: Thu, 16 Feb 2012 21:08:06 +0000 (+0100) Subject: Insert the slot field as a numeric field. X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d7a0330e36873fc61cd04cde2746f14269e574b2;p=bacula%2Fbacula Insert the slot field as a numeric field. The sorting in mediaview doesn't work well as the slot field is added as a text field not a numeric field. --- diff --git a/bacula/src/qt-console/medialist/mediaview.cpp b/bacula/src/qt-console/medialist/mediaview.cpp index 6f8f28240d..6c31687964 100644 --- a/bacula/src/qt-console/medialist/mediaview.cpp +++ b/bacula/src/qt-console/medialist/mediaview.cpp @@ -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();