}
if (fileReply)
- delete fileReply;
+ fileReply->deleteLater();
FileCommand fileCommand(m_ed2k,
size(),
#ifdef ANIDBUDPCLIENT_FILE_DEBUG
qDebug() << "startAdding";
#endif
-qDebug() << addingState();
if (!canContinue(m_addingState))
{
work();
markCommand = MyListAddCommand(m_ed2k, size(), true);
markCommand.setViewed(true);
- if (markReply) markReply->deleteLater();
+ if (markReply)
+ markReply->deleteLater();
markReply = clientInstance()->send(markCommand);
connect(markReply, SIGNAL(replyReady(bool)), this, SLOT(finishMarking(bool)));
updateStatus(MarkingWatched, InProgress);
setStateCommand.setMyListState(m_state);
if (setStateReply)
- delete setStateReply;
+ setStateReply->deleteLater();
setStateReply = clientInstance()->send(setStateCommand);
connect(setStateReply, SIGNAL(replyReady(bool)), this, SLOT(finishSetState(bool)));
updateStatus(SettingState, InProgress);