mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
fix #1394
This commit is contained in:
parent
bcbc6bd65f
commit
0c4cc87ed0
|
@ -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()
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user