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:
parent
3cea0244d4
commit
1e50f9b095
@ -418,8 +418,13 @@ void MainWindow::on_actionHelpAbout_triggered()
|
|||||||
void MainWindow::stopLocalServerMonitor()
|
void MainWindow::stopLocalServerMonitor()
|
||||||
{
|
{
|
||||||
// We are only interested in startup errors
|
// 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)),
|
disconnect(localServer_, SIGNAL(error(QProcess::ProcessError)),
|
||||||
this, SLOT(onLocalServerError(QProcess::ProcessError)));
|
this, SLOT(onLocalServerError(QProcess::ProcessError)));
|
||||||
|
#endif
|
||||||
disconnect(localServer_, SIGNAL(finished(int, QProcess::ExitStatus)),
|
disconnect(localServer_, SIGNAL(finished(int, QProcess::ExitStatus)),
|
||||||
this, SLOT(onLocalServerFinished(int, QProcess::ExitStatus)));
|
this, SLOT(onLocalServerFinished(int, QProcess::ExitStatus)));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user