Skip to content

Commit 0135249

Browse files
committed
only update control file if comment was edited
1 parent 250c00a commit 0135249

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Gtk/SnapshotListBox.vala

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,10 @@ class SnapshotListBox : Gtk.Box{
237237
var model = (Gtk.ListStore) treeview.model;
238238
model.get_iter_from_string (out iter, path);
239239
model.get (iter, 0, out bak, -1);
240-
bak.description = new_text;
241-
bak.update_control_file();
240+
if (bak.description != new_text) {
241+
bak.description = new_text;
242+
bak.update_control_file();
243+
}
242244
});
243245

244246
var col_buffer = new TreeViewColumn();

0 commit comments

Comments
 (0)