added missing deletes in Transfers dialog

This commit is contained in:
csoler 2020-12-23 20:47:49 +01:00
parent d28665df18
commit a2eced6d4a

View File

@ -1124,10 +1124,16 @@ void TransfersDialog::handleEvent_main_thread(std::shared_ptr<const RsEvent> eve
TransfersDialog::~TransfersDialog()
{
rsEvents->unregisterEventsHandler(mEventHandlerId);
rsEvents->unregisterEventsHandler(mEventHandlerId);
// save settings
processSettings(false);
ui.uploadsList->setItemDelegate(nullptr);
ui.downloadList->setItemDelegate(nullptr);
delete ULDelegate;
delete DLDelegate;
}
void TransfersDialog::activatePage(TransfersDialog::Page page)