1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

fix(ui): fix 2

This commit is contained in:
Monsterovich 2019-05-23 19:49:42 +02:00
parent 161a773dbb
commit 1c02dc2d6b
2 changed files with 4 additions and 4 deletions

View File

@ -1344,7 +1344,7 @@ void Widget::addGroupDialog(Group* group, ContentDialog* dialog)
emit widget->chatroomWidgetClicked(widget);
}
bool Widget::newFriendMessageAlert(const ToxPk& friendId, const QString text, bool sound, bool file)
bool Widget::newFriendMessageAlert(const ToxPk& friendId, const QString& text, bool sound, bool file)
{
bool hasActive;
QWidget* currentWindow;
@ -1406,7 +1406,7 @@ bool Widget::newFriendMessageAlert(const ToxPk& friendId, const QString text, bo
return false;
}
bool Widget::newGroupMessageAlert(const GroupId& groupId, const ToxPk authorPk, const QString message, bool notify)
bool Widget::newGroupMessageAlert(const GroupId& groupId, const ToxPk& authorPk, const QString& message, bool notify)
{
bool hasActive;
QWidget* currentWindow;

View File

@ -123,8 +123,8 @@ public:
void showUpdateDownloadProgress();
void addFriendDialog(const Friend* frnd, ContentDialog* dialog);
void addGroupDialog(Group* group, ContentDialog* dialog);
bool newFriendMessageAlert(const ToxPk& friendId, const QString text, bool sound = true, bool file = false);
bool newGroupMessageAlert(const GroupId& groupId, const ToxPk authorPk, const QString message, bool notify);
bool newFriendMessageAlert(const ToxPk& friendId, const QString& text, bool sound = true, bool file = false);
bool newGroupMessageAlert(const GroupId& groupId, const ToxPk& authorPk, const QString& message, bool notify);
bool getIsWindowMinimized();
void updateIcons();