first fixes

This commit is contained in:
Zach H 2015-07-12 11:00:11 -04:00
parent dc05a14f4c
commit 97f298452e
4 changed files with 3 additions and 8 deletions

View file

@ -427,11 +427,6 @@ void ChatView::appendMessage(QString message, QString sender, UserLevelFlags use
cursor.setCharFormat(defaultFormat);
message = message.mid(firstSpace);
QApplication::alert(this);
if (settingsCache->getShowMentionPopup() && shouldShowSystemPopup())
{
QString ref = sender.left(sender.length() - 2);
showSystemPopup(ref);
}
}
else
{

View file

@ -710,7 +710,7 @@ void MessagesSettingsPage::retranslateUi()
messagePopups.setText(tr("Enable desktop notifications for private messages."));
mentionPopups.setText(tr("Enable desktop notification for mentions."));
hexLabel.setText(tr("(Color is hexadecimal)"));
customAlertStringLabel.setText(tr("(Seperate each word with a comma; Words are case insensitive)"));
customAlertStringLabel.setText(tr("(Seperate each word with a comma, words are case insensitive)"));
}

View file

@ -91,7 +91,7 @@ void SettingsCache::setCardInfoViewMode(const int _viewMode) {
settings->setValue("cards/cardinfoviewmode", cardInfoViewMode);
}
void SettingsCache::setHighlightWords(const QString _highlightWords) {
void SettingsCache::setHighlightWords(const QString &_highlightWords) {
// Words are seperated by a comma and you can not use spaces in words
highlightWords = _highlightWords.simplified().replace(" ", "").split(",");
settings->setValue("personal/highlightWords", highlightWords);

View file

@ -196,7 +196,7 @@ public slots:
void setLeftJustified( const int _leftJustified);
void setMasterVolume(const int _masterVolume);
void setCardInfoViewMode(const int _viewMode);
void setHighlightWords(const QString _highlightWords);
void setHighlightWords(const QString &_highlightWords);
};
extern SettingsCache *settingsCache;