Fix T40791: Changing path to movie file does not mark the project as changed
This commit is contained in:
@@ -239,6 +239,8 @@ void BUTTONS_OT_file_browse(wmOperatorType *ot)
|
||||
ot->exec = file_browse_exec;
|
||||
ot->cancel = file_browse_cancel;
|
||||
|
||||
ot->flag |= OPTYPE_UNDO;
|
||||
|
||||
/* properties */
|
||||
WM_operator_properties_filesel(ot, 0, FILE_SPECIAL, FILE_OPENFILE,
|
||||
WM_FILESEL_FILEPATH | WM_FILESEL_RELPATH, FILE_DEFAULTDISPLAY);
|
||||
@@ -257,6 +259,8 @@ void BUTTONS_OT_directory_browse(wmOperatorType *ot)
|
||||
ot->exec = file_browse_exec;
|
||||
ot->cancel = file_browse_cancel;
|
||||
|
||||
ot->flag |= OPTYPE_UNDO;
|
||||
|
||||
/* properties */
|
||||
WM_operator_properties_filesel(ot, 0, FILE_SPECIAL, FILE_OPENFILE,
|
||||
WM_FILESEL_DIRECTORY | WM_FILESEL_RELPATH, FILE_DEFAULTDISPLAY);
|
||||
|
||||
Reference in New Issue
Block a user