MAINT-8036 Fixed Viewer freezing when overwriting existing snpshot with new one.
parent
62390a7e0a
commit
f32f0aff4b
|
|
@ -4442,7 +4442,8 @@ BOOL LLViewerWindow::saveImageNumbered(LLImageFormatted *image, BOOL force_picke
|
|||
err = LLFile::stat( filepath, &stat_info );
|
||||
i++;
|
||||
}
|
||||
while( -1 != err ); // search until the file is not found (i.e., stat() gives an error).
|
||||
while( -1 != err // Search until the file is not found (i.e., stat() gives an error).
|
||||
&& is_snapshot_name_loc_set); // Or stop if we are rewriting.
|
||||
|
||||
LL_INFOS() << "Saving snapshot to " << filepath << LL_ENDL;
|
||||
return image->save(filepath);
|
||||
|
|
|
|||
Loading…
Reference in New Issue