src/network/access/qftp.cpp
changeset 22 79de32ba3296
parent 18 2f34d5167611
child 30 5dc02b23752f
equal deleted inserted replaced
19:fcece45ef507 22:79de32ba3296
  2307 /*! \internal
  2307 /*! \internal
  2308 */
  2308 */
  2309 void QFtpPrivate::_q_piError(int errorCode, const QString &text)
  2309 void QFtpPrivate::_q_piError(int errorCode, const QString &text)
  2310 {
  2310 {
  2311     Q_Q(QFtp);
  2311     Q_Q(QFtp);
       
  2312 
       
  2313     if (pending.isEmpty()) {
       
  2314         qWarning() << "QFtpPrivate::_q_piError was called without pending command!";
       
  2315         return;
       
  2316     }
       
  2317 
  2312     QFtpCommand *c = pending.first();
  2318     QFtpCommand *c = pending.first();
  2313 
  2319 
  2314     // non-fatal errors
  2320     // non-fatal errors
  2315     if (c->command == QFtp::Get && pi.currentCommand().startsWith(QLatin1String("SIZE "))) {
  2321     if (c->command == QFtp::Get && pi.currentCommand().startsWith(QLatin1String("SIZE "))) {
  2316         pi.dtp.setBytesTotal(-1);
  2322         pi.dtp.setBytesTotal(-1);