1) Enable the 'Configure' and 'View log' menu option when the server taking longer than usual time to start.

2) When an error occurs from the backend, the configure window opens and if the user has changed the setting
   of the port, it won't take any effect as we have retrieved the value of the port at the start of the runtime.
3) Added logic to identify the specified fixed port is already in use. Throw the error before starting the pgAdmin server.

Fixes #5751
This commit is contained in:
Akshay Joshi
2020-08-25 18:01:27 +05:30
parent e2ac6187dc
commit 59649ca42c
7 changed files with 163 additions and 69 deletions
+14 -1
View File
@@ -117,7 +117,6 @@ void FloatingWindow::enableViewLogOption()
m_logAction->setEnabled(true);
}
// Disable the View Log option
void FloatingWindow::disableViewLogOption()
{
@@ -125,6 +124,20 @@ void FloatingWindow::disableViewLogOption()
m_logAction->setEnabled(false);
}
// Enable the configure option
void FloatingWindow::enableConfigOption()
{
if (m_configAction != Q_NULLPTR)
m_configAction->setEnabled(true);
}
// Disable the configure option
void FloatingWindow::disableConfigOption()
{
if (m_configAction != Q_NULLPTR)
m_configAction->setEnabled(false);
}
void FloatingWindow::closeEvent(QCloseEvent * event)
{
// Emit the signal to shut down the python server.