mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-28 16:17:28 -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(
|
RsTokenService::GxsRequestStatus waitToken(
|
||||||
uint32_t token,
|
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),
|
std::chrono::milliseconds checkEvery = std::chrono::milliseconds(100),
|
||||||
bool auto_delete_if_unsuccessful=true)
|
bool auto_delete_if_unsuccessful=true)
|
||||||
{
|
{
|
||||||
|
|
|
@ -169,13 +169,15 @@ void GxsGroupFrameDialog::initUi()
|
||||||
connect(NotifyQt::getInstance(), SIGNAL(settingsChanged()), this, SLOT(settingsChanged()));
|
connect(NotifyQt::getInstance(), SIGNAL(settingsChanged()), this, SLOT(settingsChanged()));
|
||||||
settingsChanged();
|
settingsChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mInitialized = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void GxsGroupFrameDialog::showEvent(QShowEvent *event)
|
void GxsGroupFrameDialog::showEvent(QShowEvent *event)
|
||||||
{
|
{
|
||||||
if (!mInitialized) {
|
if (!mInitialized || ui->groupTreeWidget->treeWidget()->topLevelItemCount() == 0)
|
||||||
|
{
|
||||||
/* Problem: virtual methods cannot be used in constructor */
|
/* Problem: virtual methods cannot be used in constructor */
|
||||||
mInitialized = true;
|
|
||||||
|
|
||||||
initUi();
|
initUi();
|
||||||
}
|
}
|
||||||
|
|
|
@ -392,11 +392,10 @@ void GxsForumThreadWidget::blank()
|
||||||
|
|
||||||
//mThreadModel->clear();
|
//mThreadModel->clear();
|
||||||
|
|
||||||
#ifdef SUSPENDED_CODE
|
|
||||||
mStateHelper->setWidgetEnabled(ui->newthreadButton, false);
|
mStateHelper->setWidgetEnabled(ui->newthreadButton, false);
|
||||||
mStateHelper->setWidgetEnabled(ui->previousButton, false);
|
mStateHelper->setWidgetEnabled(ui->previousButton, false);
|
||||||
mStateHelper->setWidgetEnabled(ui->nextButton, false);
|
mStateHelper->setWidgetEnabled(ui->nextButton, false);
|
||||||
#endif
|
|
||||||
ui->versions_CB->hide();
|
ui->versions_CB->hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue