kio: initialize all KIO::SlaveBasePrivate members before connecting the slave

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2022-12-22 23:40:05 +02:00
parent b2d0b1a955
commit 5a270d4864
2 changed files with 1 additions and 3 deletions

View file

@ -230,11 +230,10 @@ SlaveBase::SlaveBase( const QByteArray &protocol,
d->last_tv.tv_usec = 0; d->last_tv.tv_usec = 0;
d->totalSize=0; d->totalSize=0;
d->timeout = 0; d->timeout = 0;
connectSlave(QFile::decodeName(app_socket));
d->remotefile = 0; d->remotefile = 0;
d->inOpenLoop = false; d->inOpenLoop = false;
d->exit_loop = false; d->exit_loop = false;
connectSlave(QFile::decodeName(app_socket));
} }
SlaveBase::~SlaveBase() SlaveBase::~SlaveBase()

View file

@ -160,7 +160,6 @@ Q_SIGNALS:
void mimeType( const QString & ); void mimeType( const QString & );
void warning( const QString & ); void warning( const QString & );
void infoMessage( const QString & ); void infoMessage( const QString & );
//void connectFinished(); //it does not get emitted anywhere
protected: protected:
///////////////// /////////////////