diff --git a/src/tools/toolfactory.cpp b/src/tools/toolfactory.cpp index 3a6c0487..e36de70d 100644 --- a/src/tools/toolfactory.cpp +++ b/src/tools/toolfactory.cpp @@ -112,7 +112,6 @@ CaptureTool* ToolFactory::CreateTool(CaptureToolButton::ButtonType t, case CaptureToolButton::TYPE_CIRCLECOUNT: tool = new CircleCountTool(parent); break; - default: tool = nullptr; break; diff --git a/src/widgets/capture/capturewidget.cpp b/src/widgets/capture/capturewidget.cpp index 17f403a2..90ee559c 100644 --- a/src/widgets/capture/capturewidget.cpp +++ b/src/widgets/capture/capturewidget.cpp @@ -1132,6 +1132,10 @@ void CaptureWidget::copyScreenshot() void CaptureWidget::saveScreenshot() { +#if (defined(Q_OS_MAC) || defined(Q_OS_MAC64) || defined(Q_OS_MACOS) || \ + defined(Q_OS_MACX)) + showNormal(); +#endif m_captureDone = true; if (m_activeTool != nullptr) { QPainter painter(&m_context.screenshot);