MAINT-8036 Fixed Viewer freezing when overwriting existing snpshot with new one.

meow-7.2.2
andreykproductengine 2017-12-01 18:50:39 +02:00
parent 62390a7e0a
commit f32f0aff4b
1 changed files with 2 additions and 1 deletions

View File

@ -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);