From f8c14a7671bf5befddba6ca7e990edc24e3ffc74 Mon Sep 17 00:00:00 2001 From: Tiernan Hubble Date: Sun, 23 Apr 2023 16:31:03 -0600 Subject: [PATCH] Fix warning about unregistering URL handlers. --- src/lib/app/mainapplication.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib/app/mainapplication.cpp b/src/lib/app/mainapplication.cpp index 89a876fd5..c9b0e2c79 100644 --- a/src/lib/app/mainapplication.cpp +++ b/src/lib/app/mainapplication.cpp @@ -389,6 +389,10 @@ MainApplication::~MainApplication() { m_isClosing = true; + QDesktopServices::unsetUrlHandler(QSL("http")); + QDesktopServices::unsetUrlHandler(QSL("https")); + QDesktopServices::unsetUrlHandler(QSL("ftp")); + IconProvider::instance()->saveIconsToDatabase(); // Wait for all QtConcurrent jobs to finish