Disable upload/send button immediately.

Immediately disables button and reenables it
again when upload/save was a failure.
The callback is now ignored if the snapshot
was refresh in the meantime.
This commit is contained in:
Aleric Inglewood
2012-12-27 19:02:58 +01:00
parent 32614d3539
commit be8f16a8e6
3 changed files with 73 additions and 31 deletions

View File

@@ -3990,7 +3990,7 @@ void LLViewerWindow::saveImageNumbered(LLPointer<LLImageFormatted> image)
{
if (!image)
{
LLFloaterSnapshot::saveLocalDone(false);
LLFloaterSnapshot::saveLocalDone(false, image);
return;
}
@@ -4041,7 +4041,7 @@ void LLViewerWindow::saveImageNumbered_continued1(LLPointer<LLImageFormatted> im
}
else
{
LLFloaterSnapshot::saveLocalDone(false);
LLFloaterSnapshot::saveLocalDone(false, image);
}
}
@@ -4069,11 +4069,11 @@ void LLViewerWindow::saveImageNumbered_continued2(LLPointer<LLImageFormatted> im
if (image->save(filepath))
{
playSnapshotAnimAndSound();
LLFloaterSnapshot::saveLocalDone(true);
LLFloaterSnapshot::saveLocalDone(true, image);
}
else
{
LLFloaterSnapshot::saveLocalDone(false);
LLFloaterSnapshot::saveLocalDone(false, image);
}
}