Fix problems with reconnects where dialog keeps popping up.

This commit is contained in:
eelke 2025-04-01 20:26:44 +02:00
parent a6be979f8e
commit 581e92723d
6 changed files with 11 additions and 10 deletions

View file

@ -259,7 +259,7 @@ void ASyncDBConnectionThread::doStateCallback(ASyncDBConnection::StateData state
{
qDebug() << "State change " + state.Message;
m_state = state.State;
Q_EMIT asyncConnObject->onStateChanged(state);
Q_EMIT asyncConnObject->onStateChanged();
}
bool ASyncDBConnectionThread::waitForAndSendCommand()
@ -435,7 +435,7 @@ void ASyncDBConnection::doStateCallback(State state)
m_connection.setNoticeReceiver(
[this](const PGresult *result) { processNotice(result); });
}
Q_EMIT onStateChanged(state);
Q_EMIT onStateChanged();
}