Commit 7e74e772 authored by Michael Terry's avatar Michael Terry

Avoid duplicate include/exclude entries

In the preferences for include/excludes, sometimes we'd see two
duplicate entries. This was because of a race condition on
widget initialization.

Let's nip that in the bud by using the more appropriate method to
set from config.
parent ba15eca8
......@@ -204,7 +204,7 @@ public class ConfigList : ConfigWidget
key_press_event.connect(on_key_press_event);
set_from_config.begin();
key_changed.begin();
handle_selection_change(selection);
selection.changed.connect(handle_selection_change);
}
......@@ -231,7 +231,7 @@ public class ConfigList : ConfigWidget
model.row_deleted.disconnect(write_to_config);
model.clear();
model.row_deleted.connect(write_to_config);
int i = 0;
foreach (File f in list) {
string s = yield DejaDup.get_nickname(f);
......
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