gtk-ui: set 'insensitive' sources to sync=none (MB#9961)
When sources are insensitive in the ui, set sync=none when saving
This commit is contained in:
parent
6fced30a4e
commit
25368b40a5
1 changed files with 2 additions and 1 deletions
|
@ -274,7 +274,8 @@ use_clicked_cb (GtkButton *btn, SyncConfigWidget *self)
|
|||
const char *mode_str;
|
||||
gboolean active;
|
||||
|
||||
active = toggle_get_active (widgets->check);
|
||||
active = toggle_get_active (widgets->check) &&
|
||||
GTK_WIDGET_SENSITIVE (widgets->check);
|
||||
if (active) {
|
||||
mode_str = syncevo_sync_mode_to_string (mode);
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue