summaryrefslogtreecommitdiffstats
path: root/qt-ui/modeldelegates.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/modeldelegates.cpp')
-rw-r--r--qt-ui/modeldelegates.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/qt-ui/modeldelegates.cpp b/qt-ui/modeldelegates.cpp
index 00f10092d..87629bd1b 100644
--- a/qt-ui/modeldelegates.cpp
+++ b/qt-ui/modeldelegates.cpp
@@ -10,15 +10,13 @@
void StarWidgetsDelegate::paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const
{
- if (!index.isValid()){
+ if (!index.isValid())
return;
- }
QVariant value = index.model()->data(index, Qt::DisplayRole);
- if (!value.isValid()){
+ if (!value.isValid())
return;
- }
int rating = value.toInt();