diff options
author | Arisotura <thetotalworm@gmail.com> | 2021-11-18 18:25:19 +0100 |
---|---|---|
committer | Arisotura <thetotalworm@gmail.com> | 2021-11-18 18:25:19 +0100 |
commit | 08eda46706456f15e5e0080a816b6395a20d607b (patch) | |
tree | 0d57ef61866ce28dca7cd29c28d4f3df3ce836f4 /src/frontend/qt_sdl/FirmwareSettingsDialog.cpp | |
parent | f73df85d1c66b1b2f028a5aec4ebc04874863b8f (diff) |
fix potential crash with firmware dialog (when closing dialog via X and opening it again)
Diffstat (limited to 'src/frontend/qt_sdl/FirmwareSettingsDialog.cpp')
-rw-r--r-- | src/frontend/qt_sdl/FirmwareSettingsDialog.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/frontend/qt_sdl/FirmwareSettingsDialog.cpp b/src/frontend/qt_sdl/FirmwareSettingsDialog.cpp index 94e5f5a..698e20c 100644 --- a/src/frontend/qt_sdl/FirmwareSettingsDialog.cpp +++ b/src/frontend/qt_sdl/FirmwareSettingsDialog.cpp @@ -55,7 +55,7 @@ FirmwareSettingsDialog::~FirmwareSettingsDialog() delete ui; } -void FirmwareSettingsDialog::on_dialogButtons_accepted() +void FirmwareSettingsDialog::on_FirmwareSettingsDialog_accepted() { std::string newName = ui->usernameEdit->text().toStdString(); strncpy(Config::FirmwareUsername, newName.c_str(), 63); Config::FirmwareUsername[63] = '\0'; @@ -73,7 +73,7 @@ void FirmwareSettingsDialog::on_dialogButtons_accepted() closeDlg(); } -void FirmwareSettingsDialog::on_dialogButtons_rejected() +void FirmwareSettingsDialog::on_FirmwareSettingsDialog_rejected() { closeDlg(); } |