mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-03-22 03:58:50 -04:00
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:
parent
04731ca1ae
commit
70675ca098
@ -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 ()
|
||||
|
@ -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 ();
|
||||
|
Loading…
Reference in New Issue
Block a user