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
|
|
@ -322,13 +322,14 @@ void QueryTool::queryTextChanged()
|
|||
setQueryTextChanged(true);
|
||||
}
|
||||
|
||||
void QueryTool::connectionStateChanged(ASyncDBConnection::StateData state)
|
||||
void QueryTool::connectionStateChanged()
|
||||
{
|
||||
QString iconname;
|
||||
switch (state.State) {
|
||||
|
||||
switch (m_dbConnection.state()) {
|
||||
case ASyncDBConnection::State::NotConnected:
|
||||
QMessageBox::warning(this, "pglab", tr("Warning connection and any of its session state has been lost"));
|
||||
startConnect();
|
||||
//startConnect();
|
||||
iconname = "red.png";
|
||||
break;
|
||||
case ASyncDBConnection::State::Connecting:
|
||||
|
|
|
|||
|
|
@ -113,7 +113,7 @@ private slots:
|
|||
void query_ready(std::shared_ptr<Pgsql::Result>, qint64 elapsedms);
|
||||
|
||||
void queryTextChanged();
|
||||
void connectionStateChanged(ASyncDBConnection::StateData state);
|
||||
void connectionStateChanged();
|
||||
void receiveNotice(Pgsql::ErrorDetails notice);
|
||||
|
||||
void startConnect();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue