From 374758fd411570f4bd2babc12884185319cc62bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Thu, 13 Oct 2022 23:34:08 +0200 Subject: [PATCH] Move header and declaration to the top of the file --- YACReaderLibrary/library_window.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/YACReaderLibrary/library_window.cpp b/YACReaderLibrary/library_window.cpp index a60b3dea..6b66c567 100644 --- a/YACReaderLibrary/library_window.cpp +++ b/YACReaderLibrary/library_window.cpp @@ -89,6 +89,9 @@ #include "QsLog.h" +#include "yacreader_http_server.h" +extern YACReaderHttpServer *httpServer; + #ifdef Q_OS_WIN #include #endif @@ -2595,8 +2598,7 @@ void LibraryWindow::showImportComicsInfo() importComicsInfoDialog->dest = currentPath() + "/.yacreaderlibrary/library.ydb"; importComicsInfoDialog->open(); } -#include "yacreader_http_server.h" -extern YACReaderHttpServer *httpServer; + void LibraryWindow::closeEvent(QCloseEvent *event) { if (!trayIconController->handleCloseToTrayIcon(event)) {