Commit 9b0bd7e6 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

flatpak: Fix static code analysis warning

Both branches were obviously the same.
parent 5c5b9e22
Pipeline #194246 failed with stage
in 1 minute and 3 seconds
......@@ -398,7 +398,7 @@ bool FlatpakSourcesBackend::moveSource(const QString &sourceId, int delta)
auto prevRow = m_sources->takeRow(row);
Q_ASSERT(!prevRow.isEmpty());
const auto destRow = row + (delta > 0 ? delta : delta);
const auto destRow = row + delta;
m_sources->insertRow(destRow, prevRow);
if (destRow == 0 || row == 0)
Q_EMIT firstSourceIdChanged();
......
Supports Markdown
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