Use errorOccurred() signal in disconnect as well

8d3f0c807f had changed the signal name in connect, but missed out in
using the new name in disconnect()
This commit is contained in:
Srivats P 2022-11-14 17:27:47 +05:30
parent 3cea0244d4
commit 1e50f9b095

View File

@ -418,8 +418,13 @@ void MainWindow::on_actionHelpAbout_triggered()
void MainWindow::stopLocalServerMonitor()
{
// We are only interested in startup errors
#if QT_VERSION >= 0x050600
disconnect(localServer_, SIGNAL(errorOccurred(QProcess::ProcessError)),
this, SLOT(onLocalServerError(QProcess::ProcessError)));
#else
disconnect(localServer_, SIGNAL(error(QProcess::ProcessError)),
this, SLOT(onLocalServerError(QProcess::ProcessError)));
#endif
disconnect(localServer_, SIGNAL(finished(int, QProcess::ExitStatus)),
this, SLOT(onLocalServerFinished(int, QProcess::ExitStatus)));
}