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