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>2013-08-15 14:14:41 +0400
committerAndrea Weikert <elubie@gmx.net>2013-08-15 14:14:41 +0400
commit20b5e1f7b859c38bfcb52891d3427c5ed826b1c8 (patch)
treef11bed523ab7d2583752a7b372e1ad7a5de9ae36
parentd34f9c7a7466c34319b172f943d2447db0f54b54 (diff)
== filebrowser ==
* FIX: selecting bookmark or recent file caused UNDO push, also caused issue with the 'Open' and 'Cancel' buttons being grayed out. Reported by Sergey Sharybin in IRC, many thanks.
-rw-r--r--source/blender/editors/space_file/file_panels.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/space_file/file_panels.c b/source/blender/editors/space_file/file_panels.c
index d6f644ab330..0efc7b927a9 100644
--- a/source/blender/editors/space_file/file_panels.c
+++ b/source/blender/editors/space_file/file_panels.c
@@ -115,6 +115,7 @@ static void file_panel_category(const bContext *C, Panel *pa, FSMenuCategory cat
/* create list item */
but = uiDefIconTextButS(block, LISTROW, 0, icon, dir, 0, 0, UI_UNIT_X * 10, UI_UNIT_Y, nr, 0, i, 0, 0, entry);
uiButSetFunc(but, file_panel_cb, entry, NULL);
+ uiButClearFlag(but, UI_BUT_UNDO); /* skip undo on screen buttons */
uiButSetFlag(but, UI_ICON_LEFT | UI_TEXT_LEFT);
/* create delete button */