fix: remove server config dialog custom show event

Fixes Crash with Qt 6.8
This commit is contained in:
sithlord48
2024-10-18 17:29:45 -04:00
committed by Chris Rizzitello
parent 6395630964
commit 3d2883ad02
2 changed files with 0 additions and 13 deletions

View File

@ -41,7 +41,6 @@ ServerConfigDialog::ServerConfigDialog(QWidget *parent, ServerConfig &config, Ap
m_Message(""),
m_appConfig(appConfig)
{
setupUi(this);
// force the first tab, since qt creator sets the active tab as the last one
@ -99,7 +98,6 @@ ServerConfigDialog::ServerConfigDialog(QWidget *parent, ServerConfig &config, Ap
// computers
connect(&m_ScreenSetupModel, &ScreenSetupModel::screensChanged, this, &ServerConfigDialog::onChange);
#if QT_VERSION <= QT_VERSION_CHECK(6, 7, 0)
// advanced
connect(m_pCheckBoxSwitchDelay, &QCheckBox::stateChanged, this, [this](const int &v) {
@ -250,16 +248,6 @@ bool ServerConfigDialog::addClient(const QString &clientName)
return addComputer(clientName, true);
}
void ServerConfigDialog::showEvent(QShowEvent *event)
{
QDialog::show();
if (!m_Message.isEmpty()) {
// TODO: ideally this massage box should pop up after the dialog is shown
QMessageBox::information(this, tr("Configure server"), m_Message);
}
}
void ServerConfigDialog::accept()
{
if (m_pCheckBoxUseExternalConfig->isChecked() && !QFile::exists(m_pEditConfigFile->text())) {

View File

@ -36,7 +36,6 @@ public:
public slots:
void accept() override;
void reject() override;
void showEvent(QShowEvent *event) override;
void message(const QString &message)
{
m_Message = message;