Fix problems with reconnects where dialog keeps popping up.
This commit is contained in:
parent
a6be979f8e
commit
581e92723d
6 changed files with 11 additions and 10 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ public:
|
|||
bool cancel();
|
||||
|
||||
Q_SIGNALS:
|
||||
void onStateChanged(ASyncDBConnection::StateData state);
|
||||
void onStateChanged();
|
||||
void onNotice(Pgsql::ErrorDetails notice);
|
||||
|
||||
private:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue