mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-02-24 08:50:10 -05:00
improvement of autoloading of GxsGroupFrameDialog
This commit is contained in:
parent
6616e8a6b3
commit
5dcbb978c3
@ -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…
x
Reference in New Issue
Block a user