mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-30 03:21:34 -04:00
Tweaks to the GUI stuff to make it conform to the new interface. The major changes were:
* New Async/Token Group/Msg Creation (required for Key generation/group Id determination). This means that creating a group, and posting messages are two steps... (see PhotoAddDialog). * Moved some MACROS from ForumV2 to libretroshare/rsidentity for generic MsgStatus stuff (e.g. MSG_READ) git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-new_cache_system@5277 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
8387c538f1
commit
388bd5da9f
6 changed files with 197 additions and 114 deletions
|
@ -64,7 +64,12 @@ void WikiAddDialog::createGroup()
|
|||
group.mMeta.mGroupName = ui.lineEdit_Name->text().toStdString();
|
||||
group.mCategory = "Unknown";
|
||||
|
||||
rsWiki->createGroup(group);
|
||||
uint32_t token;
|
||||
bool isNew = true;
|
||||
// Don't worry about getting the response?
|
||||
rsWiki->createGroup(token, group, isNew);
|
||||
|
||||
|
||||
clearDialog();
|
||||
hide();
|
||||
}
|
||||
|
|
|
@ -104,7 +104,9 @@ void WikiEditDialog::submitEdit()
|
|||
mWikiPage.mMeta.mMsgName = ui.lineEdit_Page->text().toStdString();
|
||||
mWikiPage.mPage = ui.textEdit->toPlainText().toStdString();
|
||||
|
||||
rsWiki->createPage(mWikiPage);
|
||||
uint32_t token;
|
||||
bool isNew = mNewPage;
|
||||
rsWiki->createPage(token, mWikiPage, isNew);
|
||||
hide();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue