diff --git a/indra/newview/llfloatersnapshot.cpp b/indra/newview/llfloatersnapshot.cpp index 24cf403d10..17211fe74f 100755 --- a/indra/newview/llfloatersnapshot.cpp +++ b/indra/newview/llfloatersnapshot.cpp @@ -1115,7 +1115,8 @@ LLFloaterSnapshot::LLFloaterSnapshot(const LLSD& key) mRefreshLabel(NULL), mSucceessLblPanel(NULL), mFailureLblPanel(NULL), - impl (*(new Impl)) + impl (*(new Impl)), + mIsOpen(false) // FIRE-16145: CTRL-SHIFT-S doesn't update the snapshot anymore { } @@ -1280,6 +1281,14 @@ void LLFloaterSnapshot::onOpen(const LLSD& key) impl.updateControls(this); impl.updateLayout(this); + // FIRE-16145: CTRL-SHIFT-S doesn't update the snapshot anymore + if (mIsOpen) + { + return; + } + mIsOpen = true; + // + // Initialize default tab. // Don't return to target selection after taking a snapshot //getChild("panel_container")->getCurrentPanel()->onOpen(LLSD()); @@ -1337,6 +1346,9 @@ void LLFloaterSnapshot::onClose(bool app_quitting) { LLToolMgr::getInstance()->setCurrentToolset(impl.mLastToolset); } + + // FIRE-16145: CTRL-SHIFT-S doesn't update the snapshot anymore + mIsOpen = false; } // virtual diff --git a/indra/newview/llfloatersnapshot.h b/indra/newview/llfloatersnapshot.h index 0bb9474bb5..c422178525 100755 --- a/indra/newview/llfloatersnapshot.h +++ b/indra/newview/llfloatersnapshot.h @@ -74,6 +74,9 @@ private: class Impl; Impl& impl; + + // FIRE-16145: CTRL-SHIFT-S doesn't update the snapshot anymore + bool mIsOpen; }; class LLSnapshotFloaterView : public LLFloaterView