mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 06:06:10 -04:00
improvement of autoloading of GxsGroupFrameDialog
This commit is contained in:
parent
6616e8a6b3
commit
5dcbb978c3
3 changed files with 6 additions and 5 deletions
|
@ -393,7 +393,7 @@ protected:
|
|||
*/
|
||||
RsTokenService::GxsRequestStatus waitToken(
|
||||
uint32_t token,
|
||||
std::chrono::milliseconds maxWait = std::chrono::milliseconds(10000),
|
||||
std::chrono::milliseconds maxWait = std::chrono::milliseconds(20000),
|
||||
std::chrono::milliseconds checkEvery = std::chrono::milliseconds(100),
|
||||
bool auto_delete_if_unsuccessful=true)
|
||||
{
|
||||
|
|
|
@ -169,13 +169,15 @@ void GxsGroupFrameDialog::initUi()
|
|||
connect(NotifyQt::getInstance(), SIGNAL(settingsChanged()), this, SLOT(settingsChanged()));
|
||||
settingsChanged();
|
||||
}
|
||||
|
||||
mInitialized = true;
|
||||
}
|
||||
|
||||
void GxsGroupFrameDialog::showEvent(QShowEvent *event)
|
||||
{
|
||||
if (!mInitialized) {
|
||||
if (!mInitialized || ui->groupTreeWidget->treeWidget()->topLevelItemCount() == 0)
|
||||
{
|
||||
/* Problem: virtual methods cannot be used in constructor */
|
||||
mInitialized = true;
|
||||
|
||||
initUi();
|
||||
}
|
||||
|
|
|
@ -392,11 +392,10 @@ void GxsForumThreadWidget::blank()
|
|||
|
||||
//mThreadModel->clear();
|
||||
|
||||
#ifdef SUSPENDED_CODE
|
||||
mStateHelper->setWidgetEnabled(ui->newthreadButton, false);
|
||||
mStateHelper->setWidgetEnabled(ui->previousButton, false);
|
||||
mStateHelper->setWidgetEnabled(ui->nextButton, false);
|
||||
#endif
|
||||
|
||||
ui->versions_CB->hide();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue