diff options
author | Jonathan Bauer | 2011-03-24 11:21:48 +0100 |
---|---|---|
committer | Jonathan Bauer | 2011-03-24 11:21:48 +0100 |
commit | dec22e05f1231361b76756c1f210135961e61a5d (patch) | |
tree | dc631ec099630ee4cd1a1d8b12cd0fc290f3de75 | |
parent | callback fix (diff) | |
download | fbgui-dec22e05f1231361b76756c1f210135961e61a5d.tar.gz fbgui-dec22e05f1231361b76756c1f210135961e61a5d.tar.xz fbgui-dec22e05f1231361b76756c1f210135961e61a5d.zip |
misc
-rw-r--r-- | src/downloadmanager.cpp | 14 | ||||
-rw-r--r-- | src/downloadmanager.h | 2 | ||||
-rw-r--r-- | src/fbgui.cpp | 3 |
3 files changed, 7 insertions, 12 deletions
diff --git a/src/downloadmanager.cpp b/src/downloadmanager.cpp index a203c1d..501b1d5 100644 --- a/src/downloadmanager.cpp +++ b/src/downloadmanager.cpp @@ -179,7 +179,11 @@ void DownloadManager::downloadFinished() emit notify(QString("Download failed! HTTP Status Code: %1").arg(statusCode)); } else{ - completeKCL(); + // if kcl, append the session ID to it + if (outfile.fileName() == downloadDir.absoluteFilePath("kcl")){ + qxtLog->debug() << "Completing kernel command line..."; + outfile.write(" session=" + sessionID.toUtf8()); + } // end download currentDownload->deleteLater(); outfile.close(); @@ -197,14 +201,6 @@ void DownloadManager::downloadFinished() } startNextDownload(); } -// ---------------------------------------------------------------------------------------- -void DownloadManager::completeKCL(){ - // check if current download is kcl - if (outfile.fileName() == downloadDir.absoluteFilePath("kcl")){ - qxtLog->debug() << "Completing kernel command line ..."; - outfile.write(" session=" + sessionID.toUtf8()); - } -} /******************************************************************************************************** * ** dead code: Header filename fetching & renaming ** diff --git a/src/downloadmanager.h b/src/downloadmanager.h index 22140e6..0cc1a35 100644 --- a/src/downloadmanager.h +++ b/src/downloadmanager.h @@ -39,8 +39,6 @@ private: void checkDownloadDirectory(); // private control function for queueing mechanism. void processDownloadRequest(const QUrl& url); - // function to complete the kcl file - void completeKCL(); // base objects for downloading QNetworkAccessManager* qnam; diff --git a/src/fbgui.cpp b/src/fbgui.cpp index 3154551..cddee26 100644 --- a/src/fbgui.cpp +++ b/src/fbgui.cpp @@ -174,7 +174,8 @@ void fbgui::loadURL(){ if (serial.isEmpty()) qxtLog->debug() << "No data in file: " << file.fileName(); - //qxtLog->debug() << "Serial number is: " << serial; + serial.chop(1); + qxtLog->debug() << "Serial number is: " << serial; // load if host is valid |