mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Tidy up some code to keep SonarQube happy.
This commit is contained in:
@@ -15,16 +15,13 @@
|
||||
#include <QClipboard>
|
||||
#include <QMessageBox>
|
||||
|
||||
MenuActions::MenuActions()
|
||||
MenuActions::MenuActions():
|
||||
m_appServerUrl(""),
|
||||
m_logFile(""),
|
||||
m_logWindow(Q_NULLPTR)
|
||||
{
|
||||
m_logWindow = Q_NULLPTR;
|
||||
m_logFile = "";
|
||||
m_appServerUrl = "";
|
||||
}
|
||||
|
||||
MenuActions::~MenuActions()
|
||||
{
|
||||
}
|
||||
|
||||
void MenuActions::setAppServerUrl(QString appServerUrl)
|
||||
{
|
||||
@@ -106,12 +103,9 @@ void MenuActions::onConfig()
|
||||
settings.setValue("PythonPath", pythonpath);
|
||||
settings.setValue("ApplicationPath", applicationpath);
|
||||
|
||||
if (needRestart)
|
||||
if (needRestart && QMessageBox::Yes == QMessageBox::question(Q_NULLPTR, tr("Shut down server?"), QString(tr("The %1 server must be restarted for changes to take effect. Do you want to shut down the server now?")).arg(PGA_APP_NAME), QMessageBox::Yes | QMessageBox::No))
|
||||
{
|
||||
if (QMessageBox::Yes == QMessageBox::question(Q_NULLPTR, tr("Shut down server?"), QString(tr("The %1 server must be restarted for changes to take effect. Do you want to shut down the server now?")).arg(PGA_APP_NAME), QMessageBox::Yes | QMessageBox::No))
|
||||
{
|
||||
exit(0);
|
||||
}
|
||||
exit(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user