summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKurt Hindenburg <[email protected]>2018-03-11 14:51:08 -0400
committerKurt Hindenburg <[email protected]>2018-03-11 14:51:08 -0400
commit5eb9952b8c2a918a2c3822fe72ec0f56683a2d7b (patch)
tree89de4fe31ba254b39c78dba4b1641625f54bf20a
parent87960e3f656b721f37bd087873fee30e6d5f1aac (diff)
Add note about unreachable code
-rw-r--r--src/SessionListModel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SessionListModel.cpp b/src/SessionListModel.cpp
index 2bd2d9c..f995e30 100644
--- a/src/SessionListModel.cpp
+++ b/src/SessionListModel.cpp
@@ -77,7 +77,7 @@ QVariant SessionListModel::data(const QModelIndex &index, int role) const
} else if (column == 0) {
return _sessions[row]->sessionId();
}
- break;
+ break; // Due to the above 'column' constraints, this is never reached.
case Qt::DecorationRole:
if (column == 1) {
return QIcon::fromTheme(_sessions[row]->iconName());