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:
Jussi Kukkonen 2010-03-17 02:43:38 +02:00
parent 6fced30a4e
commit 25368b40a5

View file

@ -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 {