From d83a420f0517d7fc47aeb288a6a0cf4891784fcc Mon Sep 17 00:00:00 2001 From: Christoph Berg Date: Mon, 22 Jun 2026 12:03:44 +0200 Subject: New upstream version 3.0.2+dfsg --- map65/main.cpp | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) (limited to 'map65/main.cpp') diff --git a/map65/main.cpp b/map65/main.cpp index 3df7e762..55ef209a 100644 --- a/map65/main.cpp +++ b/map65/main.cpp @@ -5,9 +5,16 @@ #include #endif #include +#ifdef _WIN32 +#include +#endif + #include "revision_utils.hpp" #include "mainwindow.h" +#include "fortran_mutex.hpp" + +#include extern "C" { // Fortran procedures we need @@ -16,19 +23,35 @@ extern "C" { int main(int argc, char *argv[]) { +#ifdef _WIN32 +# ifdef MAP_GUI_SUBSYSTEM + FreeConsole(); +# endif +#endif + +#ifdef _WIN32 +# ifdef MAP_GUI_SUBSYSTEM +# pragma message("MAP_GUI_SUBSYSTEM is defined in C++") +# else +# pragma message("MAP_GUI_SUBSYSTEM is NOT defined in C++") +# endif +#endif QApplication a {argc, argv}; + // Override programs executable basename as application name. a.setApplicationName ("MAP65"); - a.setApplicationVersion ("3.2"); + a.setApplicationVersion ("3.6"); // switch off as we share an Info.plist file with WSJT-X a.setAttribute (Qt::AA_DontUseNativeMenuBar); MainWindow w; + w.show (); QObject::connect (&a, &QApplication::lastWindowClosed, &a, &QApplication::quit); auto result = a.exec (); // clean up lazily initialized FFTW3 resources { + std::lock_guard lock(g_fortran_decode_mutex); int nfft {-1}; int ndim {1}; int isign {1}; -- cgit v1.2.3