Commit 65871902 authored by Nicholas Little's avatar Nicholas Little Committed by Andrés G. Aragoneses

Dap: remove unused variable in RemovableSource

The sync variable in RemovableSource was only used in a not operation in
the CanUnmap property. This patch removes the unused variable and marks
the property as virtual for subclasses to override.
parent f3e0bde3
......@@ -130,9 +130,8 @@ namespace Banshee.Dap
return (source is DatabaseSource) && this != source.Parent && !IsReadOnly;
}
private bool syncing = false;
public bool CanUnmap {
get { return !syncing; }
public virtual bool CanUnmap {
get { return true; }
}
public bool ConfirmBeforeUnmap {
......
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