Set dirty flag when modifying shares with dolconf.
authorFredrik Tolf <fredrik@dolda2000.com>
Mon, 13 Aug 2007 13:27:45 +0000 (15:27 +0200)
committerFredrik Tolf <fredrik@dolda2000.com>
Mon, 13 Aug 2007 13:27:45 +0000 (15:27 +0200)
config/util/dolconf.c

index 2a4e8a0..07c6077 100644 (file)
@@ -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)