]> 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)
committerKern Sibbald <kern@sibbald.com>
Sat, 6 Mar 2010 10:02:32 +0000 (11:02 +0100)
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) {