Commit 3d4b1b8b authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

Display an error when a source could not be removed

parent 426bd387
......@@ -195,7 +195,9 @@ DiscoverPage {
tooltip: i18n("Delete the origin")
onTriggered: {
var backend = sourcesView.model.data(modelIndex, AbstractSourcesBackend.SourcesBackend)
backend.removeSource(model.display)
if (!backend.removeSource(model.display)) {
window.showPassiveNotification(i18n("Failed to remove the source '%1'", model.display))
}
}
}
]
......
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