1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-23 00:18:37 -05:00

Multi device support: proper use of on action Exit trigger

This commit is contained in:
f4exb 2016-05-20 22:14:07 +02:00
parent c16aea9baf
commit 3e4a163304
2 changed files with 11 additions and 7 deletions

View File

@ -162,13 +162,6 @@ MainWindow::MainWindow(QWidget* parent) :
MainWindow::~MainWindow()
{
saveSettings();
while (m_deviceUIs.size() > 0)
{
removeLastDevice();
}
delete m_pluginManager;
delete m_dateTimeWidget;
delete m_showSystemWidget;
@ -716,6 +709,16 @@ void MainWindow::on_action_removeDevice_triggered()
}
}
void MainWindow::on_action_Exit_triggered()
{
saveSettings();
while (m_deviceUIs.size() > 0)
{
removeLastDevice();
}
}
void MainWindow::tabInputViewIndexChanged()
{
int inputViewIndex = ui->tabInputsView->currentIndex();

View File

@ -155,6 +155,7 @@ private slots:
void on_action_About_triggered();
void on_action_addDevice_triggered();
void on_action_removeDevice_triggered();
void on_action_Exit_triggered();
void tabInputViewIndexChanged();
};