X-Git-Url: http://git.dolda2000.com/gitweb/?p=doldaconnect.git;a=blobdiff_plain;f=config%2Futil%2Fdolconf.c;h=07c6077999c242962c511bb98db7298d122f324b;hp=2a4e8a07a4c9f9e26363c667891addd06e961ca7;hb=c335e21c3b6431328284851ca845d3a9182ed0a3;hpb=11146491cf62901d031221512ec160a49252db66 diff --git a/config/util/dolconf.c b/config/util/dolconf.c index 2a4e8a0..07c6077 100644 --- a/config/util/dolconf.c +++ b/config/util/dolconf.c @@ -639,7 +639,8 @@ void cb_ast_shareadd_clicked(GtkWidget *widget, gpointer uudata) void cb_cfw_shareadd_clicked(GtkWidget *widget, gpointer uudata) { - shareadd(); + if(shareadd()) + dirty = 1; } void cb_ast_sharerem_clicked(GtkWidget *widget, gpointer uudata) @@ -656,8 +657,10 @@ void cb_cfw_sharerem_clicked(GtkWidget *widget, gpointer uudata) { GtkTreeIter iter; - if(gtk_tree_selection_get_selected(gtk_tree_view_get_selection(GTK_TREE_VIEW(cfw_sharelist)), NULL, &iter)) + if(gtk_tree_selection_get_selected(gtk_tree_view_get_selection(GTK_TREE_VIEW(cfw_sharelist)), NULL, &iter)) { gtk_list_store_remove(shares, &iter); + dirty = 1; + } } void cb_ast_checkports(GtkWidget *widget, gpointer uudata)