]> git.sur5r.net Git - bacula/bacula/commitdiff
Apply fix suggested by Andreas in bug #1502 for mediaview column sort problem
authorKern Sibbald <kern@sibbald.com>
Sat, 6 Mar 2010 10:01:34 +0000 (11:01 +0100)
committerEric Bollengier <eric@eb.homelinux.org>
Mon, 2 Aug 2010 14:49:37 +0000 (16:49 +0200)
bacula/src/qt-console/medialist/mediaview.cpp

index b3fb58c7eed109e6c9abdffe187c56f7cf361394..14b56802b3498a9082bd7343cdefac88723418f1 100644 (file)
@@ -311,6 +311,7 @@ void MediaView::populateTable()
       + cmd + 
       " ORDER BY VolumeName LIMIT " + m_sbLimit->cleanText();
 
+   m_tableMedia->sortByColumn(0, Qt::AscendingOrder);
    m_tableMedia->setSortingEnabled(false); /* Don't sort during insert */
    results.clear();
    if (mainWin->m_sqlDebug) {