mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-05-24 02:12:37 -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 <QSettings>
|
||||||
#include <QDateTime>
|
#include <QDateTime>
|
||||||
#include <QDir>
|
#include <QDir>
|
||||||
|
#include <QCloseEvent>
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
|
|
||||||
#include "commons.h"
|
#include "commons.h"
|
||||||
@ -56,7 +57,7 @@ Astro::~Astro ()
|
|||||||
void Astro::closeEvent (QCloseEvent * e)
|
void Astro::closeEvent (QCloseEvent * e)
|
||||||
{
|
{
|
||||||
write_settings ();
|
write_settings ();
|
||||||
QWidget::closeEvent (e);
|
e->ignore (); // do not allow closure by the window system
|
||||||
}
|
}
|
||||||
|
|
||||||
void Astro::read_settings ()
|
void Astro::read_settings ()
|
||||||
|
@ -2051,6 +2051,7 @@ void MainWindow::closeEvent(QCloseEvent * e)
|
|||||||
m_valid = false; // suppresses subprocess errors
|
m_valid = false; // suppresses subprocess errors
|
||||||
m_config.transceiver_offline ();
|
m_config.transceiver_offline ();
|
||||||
writeSettings ();
|
writeSettings ();
|
||||||
|
m_astroWidget.reset ();
|
||||||
m_guiTimer.stop ();
|
m_guiTimer.stop ();
|
||||||
m_prefixes.reset ();
|
m_prefixes.reset ();
|
||||||
m_shortcuts.reset ();
|
m_shortcuts.reset ();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user