Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Weikert <elubie@gmx.net>2007-09-05 00:27:43 +0400
committerAndrea Weikert <elubie@gmx.net>2007-09-05 00:27:43 +0400
commitbbc47e96d32b3594dd4fc6eef616d725a8bd75e5 (patch)
tree8c0bddb6766d6c7f4da1e90079cf884fa911f1c1 /source/blender/src/editimasel.c
parent72e8dd452cd2b4d8969c2ecdef4aa1356d498bb5 (diff)
== imagebrowser ==
- fix: deleting bookmark didn't update .Bfs file (see tracker #7298) - also fixed memleak, thanks to the guardedalloc :)
Diffstat (limited to 'source/blender/src/editimasel.c')
-rw-r--r--source/blender/src/editimasel.c19
1 files changed, 11 insertions, 8 deletions
diff --git a/source/blender/src/editimasel.c b/source/blender/src/editimasel.c
index 506dadfe6bd..6111329e3e7 100644
--- a/source/blender/src/editimasel.c
+++ b/source/blender/src/editimasel.c
@@ -1058,15 +1058,18 @@ void winqreadimaselspace(ScrArea *sa, void *spacedata, BWinEvent *evt)
case XKEY:
getmouseco_areawin(mval);
if (simasel->flag & FILE_BOOKMARKS) {
- if(mval[0]>simasel->bookmarkrect.xmin && mval[0]<simasel->bookmarkrect.xmax && mval[1]>simasel->bookmarkrect.ymin && mval[1]<simasel->bookmarkrect.ymax) {
- int nentries = fsmenu_get_nentries();
- set_active_bookmark(simasel, mval[1]);
- if (simasel->active_bookmark >= 0 && simasel->active_bookmark < nentries) {
- fsmenu_remove_entry(simasel->active_bookmark);
- simasel->active_bookmark = -1;
- do_draw = 1;
- }
+ if(mval[0]>simasel->bookmarkrect.xmin && mval[0]<simasel->bookmarkrect.xmax && mval[1]>simasel->bookmarkrect.ymin && mval[1]<simasel->bookmarkrect.ymax) {
+ int nentries = fsmenu_get_nentries();
+ set_active_bookmark(simasel, mval[1]);
+ if (simasel->active_bookmark >= 0 && simasel->active_bookmark < nentries) {
+ char name[FILE_MAX];
+ BLI_make_file_string(G.sce, name, BLI_gethome(), ".Bfs");
+ fsmenu_remove_entry(simasel->active_bookmark);
+ fsmenu_write_file(name);
+ simasel->active_bookmark = -1;
+ do_draw = 1;
}
+ }
}
break;
}