forked from Public-Mirror/Textractor
bugfix
This commit is contained in:
parent
11016d146a
commit
9c5be4be80
@ -95,6 +95,7 @@ void MainWindow::RemoveThread(TextThread* thread)
|
|||||||
ttCombo->setCurrentIndex(0);
|
ttCombo->setCurrentIndex(0);
|
||||||
on_ttCombo_activated(0);
|
on_ttCombo_activated(0);
|
||||||
}
|
}
|
||||||
|
delete thread;
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::ThreadOutput(TextThread* thread, QString output)
|
void MainWindow::ThreadOutput(TextThread* thread, QString output)
|
||||||
|
@ -235,7 +235,7 @@ void RemoveThreads(bool(*RemoveIf)(ThreadParameter, ThreadParameter), ThreadPara
|
|||||||
{
|
{
|
||||||
if (onRemove) onRemove(i.second);
|
if (onRemove) onRemove(i.second);
|
||||||
//delete i.second; // Artikash 7/24/2018: FIXME: Qt GUI updates on another thread, so I can't delete this yet.
|
//delete i.second; // Artikash 7/24/2018: FIXME: Qt GUI updates on another thread, so I can't delete this yet.
|
||||||
i.second->Clear(); // Temp workaround to free some memory.
|
//i.second->Clear(); // Temp workaround to free some memory.
|
||||||
removedThreads.push_back(i.first);
|
removedThreads.push_back(i.first);
|
||||||
}
|
}
|
||||||
for (auto i : removedThreads) textThreadsByParams.erase(i);
|
for (auto i : removedThreads) textThreadsByParams.erase(i);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user