mirror of
https://github.com/linuxmint/timeshift.git
synced 2024-08-17 04:20:34 +03:00
Fixed: Exclude pattern not saved after editing treeview column
This commit is contained in:
parent
2ff7eaf01b
commit
1552431bea
@ -492,13 +492,17 @@ public class RestoreWindow : Gtk.Dialog{
|
||||
}
|
||||
|
||||
private void cell_exclude_text_edited (string path, string new_text) {
|
||||
string entry;
|
||||
string old_text;
|
||||
|
||||
TreeIter iter;
|
||||
ListStore model = (ListStore) tv_exclude.model;
|
||||
model.get_iter_from_string (out iter, path);
|
||||
model.get (iter, 0, out entry, -1);
|
||||
model.get (iter, 0, out old_text, -1);
|
||||
model.set (iter, 0, new_text);
|
||||
|
||||
int index = temp_exclude_list.index_of(old_text);
|
||||
temp_exclude_list.remove(old_text);
|
||||
temp_exclude_list.insert(index, new_text);
|
||||
}
|
||||
|
||||
|
||||
|
@ -502,16 +502,19 @@ public class SettingsWindow : Gtk.Dialog{
|
||||
}
|
||||
|
||||
private void cell_exclude_text_edited (string path, string new_text) {
|
||||
string entry;
|
||||
string old_text;
|
||||
|
||||
TreeIter iter;
|
||||
ListStore model = (ListStore) tv_exclude.model;
|
||||
model.get_iter_from_string (out iter, path);
|
||||
model.get (iter, 0, out entry, -1);
|
||||
model.get (iter, 0, out old_text, -1);
|
||||
model.set (iter, 0, new_text);
|
||||
|
||||
int index = temp_exclude_list.index_of(old_text);
|
||||
temp_exclude_list.remove(old_text);
|
||||
temp_exclude_list.insert(index, new_text);
|
||||
}
|
||||
|
||||
|
||||
private void refresh_tv_schedule(){
|
||||
|
||||
ListStore model = new ListStore(3, typeof(bool), typeof(string), typeof(string));
|
||||
|
BIN
src/timeshift
BIN
src/timeshift
Binary file not shown.
@ -18,15 +18,15 @@ long_line_column=80
|
||||
|
||||
[files]
|
||||
current_page=7
|
||||
FILE_NAME_0=10274;Vala;0;16;1;1;0;%2Fhome%2Fteejee%2Fprojects%2Ftimeshift%2Fsrc%2FMain.vala;0;4
|
||||
FILE_NAME_0=14608;Vala;0;16;1;1;0;%2Fhome%2Fteejee%2Fprojects%2Ftimeshift%2Fsrc%2FMain.vala;0;4
|
||||
FILE_NAME_1=15114;Vala;0;16;1;1;0;%2Fhome%2Fteejee%2Fprojects%2Ftimeshift%2Fsrc%2FMainWindow.vala;0;4
|
||||
FILE_NAME_2=7729;Vala;0;16;1;1;0;%2Fhome%2Fteejee%2Fprojects%2Ftimeshift%2Fsrc%2FSettingsWindow.vala;0;4
|
||||
FILE_NAME_3=14998;Vala;0;16;1;1;0;%2Fhome%2Fteejee%2Fprojects%2Ftimeshift%2Fsrc%2FRestoreWindow.vala;0;4
|
||||
FILE_NAME_4=2065;Vala;0;16;1;1;0;%2Fhome%2Fteejee%2Fprojects%2Ftimeshift%2Fsrc%2FUtility.vala;0;4
|
||||
FILE_NAME_5=794;Make;0;16;1;1;0;%2Fhome%2Fteejee%2Fprojects%2Ftimeshift%2Fsrc%2Fmakefile;0;4
|
||||
FILE_NAME_6=551;Conf;0;16;1;1;0;%2Fhome%2Fteejee%2Fprojects%2Ftimeshift%2Fdebian%2Fcontrol;0;4
|
||||
FILE_NAME_7=165;None;0;16;1;1;0;%2Fhome%2Fteejee%2Fprojects%2Ftimeshift%2Fdebian%2Fchangelog;0;4
|
||||
FILE_NAME_8=1145;None;0;16;1;1;0;%2Fhome%2Fteejee%2Fprojects%2Ftimeshift%2Fbuild-installer;0;4
|
||||
FILE_NAME_7=140;None;0;16;1;1;0;%2Fhome%2Fteejee%2Fprojects%2Ftimeshift%2Fdebian%2Fchangelog;0;4
|
||||
FILE_NAME_8=458;None;0;16;1;1;0;%2Fhome%2Fteejee%2Fprojects%2Ftimeshift%2Fbuild-installer;0;4
|
||||
FILE_NAME_9=2864;Sh;0;16;1;1;0;%2Fhome%2Fteejee%2Fprojects%2Fmake-sfx%2Flib%2Fmake-sfx%2Fheader.sh;0;4
|
||||
|
||||
[VTE]
|
||||
|
Loading…
Reference in New Issue
Block a user