Commit 30ce73bd authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

Fix crash

BUG: 395676
parent c9a6af30
......@@ -291,5 +291,6 @@ bool FlatpakSourcesBackend::moveSource(const QString& sourceId, int delta)
int FlatpakSourcesBackend::originIndex(const QString& sourceId) const
return sourceById(sourceId)->row();
auto item = sourceById(sourceId);
return item ? item->row() : INT_MAX;
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