1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00
This commit is contained in:
sudden6 2015-03-15 13:00:40 +01:00 committed by Dubslow
parent bcbc6bd65f
commit 0c4cc87ed0

View File

@ -27,6 +27,7 @@
#include <QTime>
#include <QFileDialog>
#include <QStandardPaths>
#include <QDebug>
#include "src/autoupdate.h"
@ -313,6 +314,11 @@ void GeneralForm::onReconnectClicked()
void GeneralForm::reloadSmiles()
{
QList<QStringList> emoticons = SmileyPack::getInstance().getEmoticons();
if (emoticons.isEmpty())
// sometimes there are no emoticons available, don't crash in this case
{
qDebug() << "Settings GeneralForm: No emoticons found";
} else {
QStringList smiles;
smiles << ":)" << ";)" << ":p" << ":O" << ":["; //just in case...
@ -332,6 +338,7 @@ void GeneralForm::reloadSmiles()
bodyUI->smile4->setToolTip(smiles[3]);
bodyUI->smile5->setToolTip(smiles[4]);
}
}
void GeneralForm::onCheckUpdateChanged()
{