From b277b838100413bb98a186883e462512468e6a5e Mon Sep 17 00:00:00 2001 From: Andrei Kortunov Date: Tue, 2 Jan 2018 14:52:42 +0400 Subject: [PATCH] Display the 'Screenshot saved' message after the screenshot saving (bug #4191) --- apps/openmw/engine.cpp | 4 ++++ apps/openmw/mwinput/inputmanagerimp.cpp | 2 -- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/openmw/engine.cpp b/apps/openmw/engine.cpp index e2b63232d..21dfc26fb 100644 --- a/apps/openmw/engine.cpp +++ b/apps/openmw/engine.cpp @@ -607,6 +607,10 @@ public: { std::cerr << "Error: Can't write screenshot: " << result.message() << " code " << result.status() << std::endl; } + else + { + MWBase::Environment::get().getWindowManager()->messageBox ("Screenshot saved"); + } } private: diff --git a/apps/openmw/mwinput/inputmanagerimp.cpp b/apps/openmw/mwinput/inputmanagerimp.cpp index eba0d8191..3e96f6da9 100644 --- a/apps/openmw/mwinput/inputmanagerimp.cpp +++ b/apps/openmw/mwinput/inputmanagerimp.cpp @@ -1021,8 +1021,6 @@ namespace MWInput { mScreenCaptureHandler->setFramesToCapture(1); mScreenCaptureHandler->captureNextFrame(*mViewer); - - MWBase::Environment::get().getWindowManager()->messageBox ("Screenshot saved"); } void InputManager::toggleInventory()