mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Fixed crash in forums and channels when switching fast between forums/channels.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5534 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
bcb76154f7
commit
9049440253
@ -462,9 +462,10 @@ void ChannelFeed::updateChannelMsgs()
|
||||
std::cerr << "ChannelFeed::updateChannelMsgs() stop current fill thread" << std::endl;
|
||||
#endif
|
||||
// stop current fill thread
|
||||
fillThread->stop();
|
||||
delete(fillThread);
|
||||
ChannelFillThread *thread = fillThread;
|
||||
fillThread = NULL;
|
||||
thread->stop();
|
||||
delete(thread);
|
||||
|
||||
progressLabel->hide();
|
||||
progressBar->hide();
|
||||
|
@ -859,9 +859,10 @@ void ForumsDialog::insertThreads()
|
||||
std::cerr << "ForumsDialog::insertThreads() stop current fill thread" << std::endl;
|
||||
#endif
|
||||
// stop current fill thread
|
||||
fillThread->stop();
|
||||
delete(fillThread);
|
||||
ForumsFillThread *thread = fillThread;
|
||||
fillThread = NULL;
|
||||
thread->stop();
|
||||
delete(thread);
|
||||
|
||||
ui.progressBar->hide();
|
||||
ui.progLayOutTxt->hide();
|
||||
|
Loading…
Reference in New Issue
Block a user