Browse Source

fix(ui): fix 2

reviewable/pr5674/r6
Monsterovich 6 years ago
parent
commit
1c02dc2d6b
  1. 4
      src/widget/widget.cpp
  2. 4
      src/widget/widget.h

4
src/widget/widget.cpp

@ -1344,7 +1344,7 @@ void Widget::addGroupDialog(Group* group, ContentDialog* dialog) @@ -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 @@ -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;

4
src/widget/widget.h

@ -123,8 +123,8 @@ public: @@ -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();

Loading…
Cancel
Save