From 2cd6647d4b2a4756b2ec5d933f7d2174e8556b1d Mon Sep 17 00:00:00 2001 From: lupoDharkael Date: Mon, 23 Apr 2018 20:21:36 +0200 Subject: [PATCH] Fix flameshot --raw wait time with delay --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index d87c91c8..b31564a7 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -226,7 +226,7 @@ int main(int argc, char *argv[]) { &utils, SLOT(captureFailed(uint))); QTimer t; - t.setInterval(1000 * 60 * 15); // 15 minutes timeout + t.setInterval(delay + 1000 * 60 * 15); // 15 minutes timeout QObject::connect(&t, &QTimer::timeout, qApp, &QCoreApplication::quit); t.start(); @@ -275,7 +275,7 @@ int main(int argc, char *argv[]) { SLOT(captureFailed(uint))); // timeout just in case QTimer t; - t.setInterval(2000); + t.setInterval(delay + 2000); QObject::connect(&t, &QTimer::timeout, qApp, &QCoreApplication::quit); t.start();