summaryrefslogtreecommitdiffstats
path: root/qt-ui/mainwindow.cpp
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-04-28 08:45:22 -0300
committerGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-04-28 08:45:22 -0300
commit0be521bb25cf6210ad47e42eb7a8eb7638c32442 (patch)
treee80f0700fe80ca9a669e6a2abf92f72501d2417b /qt-ui/mainwindow.cpp
parent2f4d6bbe535a195046b4746fd3a771087ee4a6c4 (diff)
downloadsubsurface-0be521bb25cf6210ad47e42eb7a8eb7638c32442.tar.gz
Fixed loading the stars when opening with file as argv. minor cleanup
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Diffstat (limited to 'qt-ui/mainwindow.cpp')
-rw-r--r--qt-ui/mainwindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp
index 4c4143e98..f4538db22 100644
--- a/qt-ui/mainwindow.cpp
+++ b/qt-ui/mainwindow.cpp
@@ -69,7 +69,7 @@ void MainWindow::on_actionOpen_triggered()
model->deleteLater();
model = new DiveTripModel(this);
sortModel->setSourceModel(model);
- ui->ListWidget->setItemDelegateForColumn(DiveTripModel::RATING, new StarWidgetsDelegate());
+ ui->ListWidget->sortByColumn(0, Qt::DescendingOrder);
}
void MainWindow::on_actionSave_triggered()