Commit 43e4a965 authored by Daniel Vrátil's avatar Daniel Vrátil 🤖
Browse files

Fix a switch case fallthrough

parent 9d591ef8
......@@ -477,9 +477,15 @@ private:
if (role == Qt::DisplayRole && column == 0) {
QString mode;
switch (transaction->transactionType) {
case TransactionNode::Begin: mode = QStringLiteral("BEGIN");
case TransactionNode::Commit: mode = QStringLiteral("COMMIT");
case TransactionNode::Rollback: mode = QStringLiteral("ROLLBACK");
case TransactionNode::Begin:
mode = QStringLiteral("BEGIN");
break;
case TransactionNode::Commit:
mode = QStringLiteral("COMMIT");
break;
case TransactionNode::Rollback:
mode = QStringLiteral("ROLLBACK");
break;
}
return QStringLiteral("%1 %2").arg(mode, transaction->query);
} else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment