summaryrefslogtreecommitdiff
path: root/map65/main.cpp
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2026-06-22 12:03:55 +0200
committerChristoph Berg <myon@debian.org>2026-06-22 12:03:55 +0200
commitde18fc13175a5bf0e2b48a042d2fc06e87c88d24 (patch)
treef517074cd603d30eb7ba7e2122d38051e4c1439c /map65/main.cpp
parentb76e8361909e47f0937d4a64a5a4cb5939f51eb7 (diff)
parentd83a420f0517d7fc47aeb288a6a0cf4891784fcc (diff)
Update upstream source from tag 'upstream/3.0.2+dfsg'
Update to upstream version '3.0.2+dfsg' with Debian dir 90381fe7be9f5ea84d9b16c9cccf200a3fbe138b
Diffstat (limited to 'map65/main.cpp')
-rw-r--r--map65/main.cpp25
1 files changed, 24 insertions, 1 deletions
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 <QtGui>
#endif
#include <QApplication>
+#ifdef _WIN32
+#include <windows.h>
+#endif
+
#include "revision_utils.hpp"
#include "mainwindow.h"
+#include "fortran_mutex.hpp"
+
+#include <cstdio>
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<std::mutex> lock(g_fortran_decode_mutex);
int nfft {-1};
int ndim {1};
int isign {1};