diff --git a/Changelog b/Changelog index f1bea945d..81b001674 100644 --- a/Changelog +++ b/Changelog @@ -3,6 +3,7 @@ - BUGFIX: Fix possible crash when closing a search engine tab - BUGFIX: Make sure service port does not change - BUGFIX: Fix possible DHT port saving issue + - BUGFIX: Fix communication between qBittorrent and Web UI (Qt 4.6) * Wed Dec 23 2009 - Christophe Dumez - v2.0.3 - BUGFIX: Minor cosmetic fix to program preferences diff --git a/src/eventmanager.cpp b/src/eventmanager.cpp index 96d2b8014..26a5246a7 100644 --- a/src/eventmanager.cpp +++ b/src/eventmanager.cpp @@ -233,7 +233,7 @@ void EventManager::modifiedTorrent(QTorrentHandle h) } event["name"] = QVariant(h.name()); event["size"] = QVariant(misc::friendlyUnit(h.actual_size())); - event["progress"] = QVariant(h.progress()); + event["progress"] = QVariant((double)h.progress()); event["dlspeed"] = QVariant(tr("%1/s", "e.g. 120 KiB/s").arg(misc::friendlyUnit(h.download_payload_rate()))); if(BTSession->isQueueingEnabled()) { if(h.queue_position() >= 0)