From: APTX Date: Thu, 14 Jun 2012 11:50:18 +0000 (+0200) Subject: Use the correct constructor. This made MyListAddCommand edit non-existing MyList... X-Git-Url: https://gitweb.tyo.aptx.org/?a=commitdiff_plain;h=c9fa940ac690cba9cd697681c6ae6e1ec1e64cc3;p=localmylist.git Use the correct constructor. This made MyListAddCommand edit non-existing MyList entries instead of adding new ones --- diff --git a/localmylist/requesthandler.cpp b/localmylist/requesthandler.cpp index 0a1dba6..2495e77 100644 --- a/localmylist/requesthandler.cpp +++ b/localmylist/requesthandler.cpp @@ -350,7 +350,7 @@ void RequestHandler::fileRequestComplete(bool success) // File is not in mylist if (!reply->lid()) { - MyListAddCommand cmd(next.fid); + MyListAddCommand cmd(next.fid, false); cmd.setEd2k(reply->ed2k()); cmd.setSize(reply->size()); cmd.setViewed(MyList::instance()->settings()->get("myListDefaultViewed").toBool());