fix: qprocess error signal is changed to errorOccurred()

fixed #238
This commit is contained in:
Xiao YiFang 2022-12-07 20:20:57 +08:00
parent f8db78be34
commit 5757fff5a6
2 changed files with 2 additions and 2 deletions

View file

@ -35,7 +35,7 @@ void ExternalViewer::start()
{ {
connect( &viewer, SIGNAL( finished( int, QProcess::ExitStatus ) ), connect( &viewer, SIGNAL( finished( int, QProcess::ExitStatus ) ),
this, SLOT( deleteLater() ) ); this, SLOT( deleteLater() ) );
connect( &viewer, SIGNAL( error( QProcess::ProcessError ) ), connect( &viewer, SIGNAL( errorOccurred( QProcess::ProcessError ) ),
this, SLOT( deleteLater() ) ); this, SLOT( deleteLater() ) );
QStringList args = parseCommandLine( viewerCmdLine ); QStringList args = parseCommandLine( viewerCmdLine );

View file

@ -141,7 +141,7 @@ RunInstance::RunInstance(): process( this )
connect( this, SIGNAL(processFinished()), this, connect( this, SIGNAL(processFinished()), this,
SLOT(handleProcessFinished()), Qt::QueuedConnection ); SLOT(handleProcessFinished()), Qt::QueuedConnection );
connect( &process, SIGNAL(finished(int)), this, SIGNAL(processFinished())); connect( &process, SIGNAL(finished(int)), this, SIGNAL(processFinished()));
connect( &process, SIGNAL(error(QProcess::ProcessError)), this, connect( &process, SIGNAL(errorOccurred(QProcess::ProcessError)), this,
SIGNAL(processFinished()) ); SIGNAL(processFinished()) );
} }