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;
|
std::cerr << "ChannelFeed::updateChannelMsgs() stop current fill thread" << std::endl;
|
||||||
#endif
|
#endif
|
||||||
// stop current fill thread
|
// stop current fill thread
|
||||||
fillThread->stop();
|
ChannelFillThread *thread = fillThread;
|
||||||
delete(fillThread);
|
|
||||||
fillThread = NULL;
|
fillThread = NULL;
|
||||||
|
thread->stop();
|
||||||
|
delete(thread);
|
||||||
|
|
||||||
progressLabel->hide();
|
progressLabel->hide();
|
||||||
progressBar->hide();
|
progressBar->hide();
|
||||||
|
@ -859,9 +859,10 @@ void ForumsDialog::insertThreads()
|
|||||||
std::cerr << "ForumsDialog::insertThreads() stop current fill thread" << std::endl;
|
std::cerr << "ForumsDialog::insertThreads() stop current fill thread" << std::endl;
|
||||||
#endif
|
#endif
|
||||||
// stop current fill thread
|
// stop current fill thread
|
||||||
fillThread->stop();
|
ForumsFillThread *thread = fillThread;
|
||||||
delete(fillThread);
|
|
||||||
fillThread = NULL;
|
fillThread = NULL;
|
||||||
|
thread->stop();
|
||||||
|
delete(thread);
|
||||||
|
|
||||||
ui.progressBar->hide();
|
ui.progressBar->hide();
|
||||||
ui.progLayOutTxt->hide();
|
ui.progLayOutTxt->hide();
|
||||||
|
Loading…
Reference in New Issue
Block a user