mirror of
https://github.com/FAUSheppy/speech-server-client-qt
synced 2025-12-06 00:41:35 +01:00
reload config after edit
This commit is contained in:
@@ -88,9 +88,16 @@ MainWindow::MainWindow(QWidget *parent):QMainWindow(parent), ui(new Ui::MainWind
|
||||
void MainWindow::openConfigurationWindow(){
|
||||
Settings *settingsWindow = new Settings();
|
||||
settingsWindow->selectSettings(this->mySettings);
|
||||
settingsWindow->setAttribute(Qt::WA_DeleteOnClose);
|
||||
connect(settingsWindow, SIGNAL(destroyed()), this, SLOT(appyConfigChanges()));
|
||||
settingsWindow->show();
|
||||
}
|
||||
|
||||
void MainWindow::appyConfigChanges(){
|
||||
setAuthHeader(mySettings->value(SETTING_USER).toString(), mySettings->value(SETTING_PASS).toString());
|
||||
networkManager = new QNetworkAccessManager(this);
|
||||
}
|
||||
|
||||
void MainWindow::handleInitialSettings(){
|
||||
|
||||
if(!mySettings->contains(SETTING_HOST)){
|
||||
|
||||
Reference in New Issue
Block a user