mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-25 06:40:58 -04:00
patch "chatdialog_allow_buttons_from_different_plugins_3" from electron. ChatDialog allows now Buttons from different Plugins.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6979 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
0e134d0a92
commit
7b0a6afa56
9 changed files with 122 additions and 50 deletions
|
@ -125,14 +125,14 @@ void ChatDialog::init(const std::string &peerId, const QString &title)
|
|||
} else {
|
||||
RsPeerDetails sslDetails;
|
||||
if (rsPeers->getPeerDetails(peerId, sslDetails)) {
|
||||
|
||||
for(int i=0;i<rsPlugins->nbPlugins();++i)
|
||||
if(rsPlugins->plugin(i) != NULL && (cd = rsPlugins->plugin(i)->qt_allocate_new_popup_chat_dialog()) != NULL)
|
||||
break ;
|
||||
|
||||
if(cd == NULL)
|
||||
cd = new PopupChatDialog();
|
||||
|
||||
PopupChatDialog* pcd = new PopupChatDialog();
|
||||
PopupChatDialog_WidgetsHolder *wh = NULL;
|
||||
for(int i=0;i<rsPlugins->nbPlugins();++i){
|
||||
if(rsPlugins->plugin(i) != NULL && (wh = rsPlugins->plugin(i)->qt_allocate_new_popup_chat_dialog_widgets()) != NULL){
|
||||
pcd->addWidgets(wh);
|
||||
}
|
||||
}
|
||||
cd = pcd;
|
||||
chatDialogs[peerId] = cd;
|
||||
cd->init(peerId, PeerDefs::nameWithLocation(sslDetails));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue