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:
authorCampbell Barton <ideasman42@gmail.com>2012-03-23 07:21:59 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-03-23 07:21:59 +0400
commitda15fbf7b4bd55095af4132dc0d854ce062b3714 (patch)
treed95a1fb34bbe55b8bca7251e92db058b6c0a387f
parent4b52ad6a358f27eae312ff5b118204490f1d2435 (diff)
file selector text field and file renaming were doing undo pushes.
-rw-r--r--source/blender/editors/space_file/file_draw.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/space_file/file_draw.c b/source/blender/editors/space_file/file_draw.c
index 462e7030805..983653d65db 100644
--- a/source/blender/editors/space_file/file_draw.c
+++ b/source/blender/editors/space_file/file_draw.c
@@ -190,6 +190,7 @@ void file_draw_buttons(const bContext *C, ARegion *ar)
TIP_(overwrite_alert ?N_("File name, overwrite existing") : N_("File name")));
uiButSetCompleteFunc(but, autocomplete_file, NULL);
uiButSetFlag(but, UI_BUT_NO_UTF8);
+ uiButClearFlag(but, UI_BUT_UNDO); /* operator button above does this automatic */
/* check if this overrides a file and if the operator option is used */
if(overwrite_alert) {
@@ -526,6 +527,7 @@ void file_draw_list(const bContext *C, ARegion *ar)
textwidth, textheight, sfile->params->renameedit, 1.0f, (float)sizeof(sfile->params->renameedit),0,0,"");
uiButSetRenameFunc(but, renamebutton_cb, file);
uiButSetFlag(but, UI_BUT_NO_UTF8); /* allow non utf8 names */
+ uiButClearFlag(but, UI_BUT_UNDO);
if ( 0 == uiButActiveOnly(C, block, but)) {
file->selflag &= ~EDITING_FILE;
}