mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-12-24 10:50:29 -05:00
Multi device support: proper use of on action Exit trigger
This commit is contained in:
parent
c16aea9baf
commit
3e4a163304
@ -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();
|
||||
|
@ -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();
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user