From 5757fff5a62b493916e6d1b378916ee66dc1c8ef Mon Sep 17 00:00:00 2001 From: Xiao YiFang Date: Wed, 7 Dec 2022 20:20:57 +0800 Subject: [PATCH] fix: qprocess error signal is changed to errorOccurred() fixed #238 --- externalviewer.cc | 2 +- programs.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/externalviewer.cc b/externalviewer.cc index ac76003c..bd84b4bb 100644 --- a/externalviewer.cc +++ b/externalviewer.cc @@ -35,7 +35,7 @@ void ExternalViewer::start() { connect( &viewer, SIGNAL( finished( int, QProcess::ExitStatus ) ), this, SLOT( deleteLater() ) ); - connect( &viewer, SIGNAL( error( QProcess::ProcessError ) ), + connect( &viewer, SIGNAL( errorOccurred( QProcess::ProcessError ) ), this, SLOT( deleteLater() ) ); QStringList args = parseCommandLine( viewerCmdLine ); diff --git a/programs.cc b/programs.cc index 3085cd3b..a2e9111f 100644 --- a/programs.cc +++ b/programs.cc @@ -141,7 +141,7 @@ RunInstance::RunInstance(): process( this ) connect( this, SIGNAL(processFinished()), this, SLOT(handleProcessFinished()), Qt::QueuedConnection ); connect( &process, SIGNAL(finished(int)), this, SIGNAL(processFinished())); - connect( &process, SIGNAL(error(QProcess::ProcessError)), this, + connect( &process, SIGNAL(errorOccurred(QProcess::ProcessError)), this, SIGNAL(processFinished()) ); }