mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-03-15 07:29:15 +01:00
OP-1122 OP-1121 close all windows when closing main GCS windows
this fixes failures to exit GCS when some dialogs are still open (for example the Waypoint Editor)
This commit is contained in:
parent
f36e3d66c1
commit
2da7c24bb7
@ -190,7 +190,8 @@ MainWindow::MainWindow() :
|
||||
|
||||
MainWindow::~MainWindow()
|
||||
{
|
||||
if (m_connectionManager) { // Pip
|
||||
if (m_connectionManager) {
|
||||
// Pip
|
||||
m_connectionManager->disconnectDevice();
|
||||
m_connectionManager->suspendPolling();
|
||||
}
|
||||
@ -353,6 +354,9 @@ void MainWindow::closeEvent(QCloseEvent *event)
|
||||
saveSettings(m_settings);
|
||||
m_uavGadgetInstanceManager->saveSettings(m_settings);
|
||||
}
|
||||
|
||||
qApp->closeAllWindows();
|
||||
|
||||
event->accept();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user