Do not allow window manager events to close the astronomical data window

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@8086 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Bill Somerville 2017-09-16 10:12:38 +00:00
parent 04731ca1ae
commit 70675ca098
2 changed files with 3 additions and 1 deletions

View File

@ -8,6 +8,7 @@
#include <QSettings>
#include <QDateTime>
#include <QDir>
#include <QCloseEvent>
#include <QDebug>
#include "commons.h"
@ -56,7 +57,7 @@ Astro::~Astro ()
void Astro::closeEvent (QCloseEvent * e)
{
write_settings ();
QWidget::closeEvent (e);
e->ignore (); // do not allow closure by the window system
}
void Astro::read_settings ()

View File

@ -2051,6 +2051,7 @@ void MainWindow::closeEvent(QCloseEvent * e)
m_valid = false; // suppresses subprocess errors
m_config.transceiver_offline ();
writeSettings ();
m_astroWidget.reset ();
m_guiTimer.stop ();
m_prefixes.reset ();
m_shortcuts.reset ();