mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-07 00:25:16 -04:00
Added three new toasters - private chat, group chat and chat lobby.
Fixed some utf8 issues in toasters and feeds. Fixed german language. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5065 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
0778e8f691
commit
37986e00a3
35 changed files with 1335 additions and 239 deletions
|
@ -847,3 +847,29 @@ void FriendsDialog::recommendFriends()
|
|||
{
|
||||
return instance ? instance->ui.tabWidget : NULL;
|
||||
}
|
||||
|
||||
/*static*/ bool FriendsDialog::isGroupChatActive()
|
||||
{
|
||||
FriendsDialog *friendsDialog = dynamic_cast<FriendsDialog*>(MainWindow::getPage(MainWindow::Friends));
|
||||
if (!friendsDialog) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (friendsDialog->ui.tabWidget->currentWidget() == friendsDialog->ui.groupChatTab) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/*static*/ void FriendsDialog::groupChatActivate()
|
||||
{
|
||||
FriendsDialog *friendsDialog = dynamic_cast<FriendsDialog*>(MainWindow::getPage(MainWindow::Friends));
|
||||
if (!friendsDialog) {
|
||||
return;
|
||||
}
|
||||
|
||||
MainWindow::showWindow(MainWindow::Friends);
|
||||
friendsDialog->ui.tabWidget->setCurrentWidget(friendsDialog->ui.groupChatTab);
|
||||
friendsDialog->ui.lineEdit->setFocus();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue