Opens and rewinds buffer
authorTorste Aikio <zokier@scratchbox>
Fri, 21 May 2010 09:12:35 +0000 (12:12 +0300)
committerTorste Aikio <zokier@scratchbox>
Fri, 21 May 2010 09:12:35 +0000 (12:12 +0300)
src/settingsdlg.cpp

index ea5cd29..d760d97 100644 (file)
@@ -74,6 +74,8 @@ void SettingsDlg::mfgListDownloadFinished(QNetworkReply *reply)
     mfgList->clear();
     QByteArray ba = reply->readAll();
     QBuffer buf(&ba, this);
+    buf.open(QIODevice::ReadOnly);
+    buf.seek(0);
     qDebug() << buf.canReadLine();
     while (buf.canReadLine())
     {