From 3b93863cf12c6a97f5ea500a9f88a3ea881256c9 Mon Sep 17 00:00:00 2001 From: Acpear <84609589+Acpear@users.noreply.github.com> Date: Mon, 23 Jan 2023 01:38:45 +0800 Subject: [PATCH] done "TODO use abstract logger" in src/main.cpp (#3044) --- src/main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 871db315..d631b476 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -475,10 +475,10 @@ int main(int argc, char* argv[]) CaptureRequest req(CaptureRequest::SCREEN_MODE, delay, screenNumber); if (!region.isEmpty()) { if (region.startsWith("screen")) { - // TODO use abstract logger - QTextStream(stderr) << "The 'screen' command does not support " - "'--region screen'.\n" - "See flameshot --help.\n"; + AbstractLogger::error() + << "The 'screen' command does not support " + "'--region screen'.\n" + "See flameshot --help.\n"; exit(1); } req.setInitialSelection(Region().value(region).toRect());