|
|
|
@ -247,7 +247,9 @@ void Widget::init() |
|
|
|
|
|
|
|
|
|
|
|
ui->searchContactFilterBox->setMenu(filterMenu); |
|
|
|
ui->searchContactFilterBox->setMenu(filterMenu); |
|
|
|
|
|
|
|
|
|
|
|
contactListWidget = new FriendListWidget(this, settings.getGroupchatPosition()); |
|
|
|
core = &profile.getCore(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
contactListWidget = new FriendListWidget(*core, this, settings.getGroupchatPosition()); |
|
|
|
connect(contactListWidget, &FriendListWidget::searchCircle, this, &Widget::searchCircle); |
|
|
|
connect(contactListWidget, &FriendListWidget::searchCircle, this, &Widget::searchCircle); |
|
|
|
connect(contactListWidget, &FriendListWidget::connectCircleWidget, this, |
|
|
|
connect(contactListWidget, &FriendListWidget::connectCircleWidget, this, |
|
|
|
&Widget::connectCircleWidget); |
|
|
|
&Widget::connectCircleWidget); |
|
|
|
@ -278,8 +280,6 @@ void Widget::init() |
|
|
|
addFriendForm = new AddFriendForm(core->getSelfId()); |
|
|
|
addFriendForm = new AddFriendForm(core->getSelfId()); |
|
|
|
groupInviteForm = new GroupInviteForm; |
|
|
|
groupInviteForm = new GroupInviteForm; |
|
|
|
|
|
|
|
|
|
|
|
core = &profile.getCore(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if UPDATE_CHECK_ENABLED |
|
|
|
#if UPDATE_CHECK_ENABLED |
|
|
|
updateCheck = std::unique_ptr<UpdateCheck>(new UpdateCheck(settings)); |
|
|
|
updateCheck = std::unique_ptr<UpdateCheck>(new UpdateCheck(settings)); |
|
|
|
connect(updateCheck.get(), &UpdateCheck::updateAvailable, this, &Widget::onUpdateAvailable); |
|
|
|
connect(updateCheck.get(), &UpdateCheck::updateAvailable, this, &Widget::onUpdateAvailable); |
|
|
|
@ -1803,7 +1803,7 @@ void Widget::onUpdateAvailable() |
|
|
|
|
|
|
|
|
|
|
|
ContentDialog* Widget::createContentDialog() const |
|
|
|
ContentDialog* Widget::createContentDialog() const |
|
|
|
{ |
|
|
|
{ |
|
|
|
ContentDialog* contentDialog = new ContentDialog(); |
|
|
|
ContentDialog* contentDialog = new ContentDialog(*core); |
|
|
|
|
|
|
|
|
|
|
|
registerContentDialog(*contentDialog); |
|
|
|
registerContentDialog(*contentDialog); |
|
|
|
return contentDialog; |
|
|
|
return contentDialog; |
|
|
|
|