diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-03-23 07:21:59 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-03-23 07:21:59 +0400 |
commit | da15fbf7b4bd55095af4132dc0d854ce062b3714 (patch) | |
tree | d95a1fb34bbe55b8bca7251e92db058b6c0a387f /source | |
parent | 4b52ad6a358f27eae312ff5b118204490f1d2435 (diff) |
file selector text field and file renaming were doing undo pushes.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/space_file/file_draw.c | 2 |
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; } |