Preserve the movie if loading state in readonly mode
This commit is contained in:
parent
9015019e20
commit
c5e759a127
1 changed files with 3 additions and 0 deletions
|
@ -341,6 +341,9 @@ void do_load_state(struct moviefile& _movie, int lmode)
|
|||
|
||||
set_preload_settings();
|
||||
|
||||
if(lmode == LOAD_STATE_CURRENT && movb.get_movie().readonly_mode())
|
||||
lmode = LOAD_STATE_PRESERVE;
|
||||
|
||||
movie newmovie;
|
||||
if(lmode == LOAD_STATE_PRESERVE)
|
||||
newmovie = movb.get_movie();
|
||||
|
|
Loading…
Add table
Reference in a new issue