mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Merge branch 'pr1397'
This commit is contained in:
commit
42fe29e83d
|
@ -27,6 +27,7 @@
|
|||
#include <QTime>
|
||||
#include <QFileDialog>
|
||||
#include <QStandardPaths>
|
||||
#include <QDebug>
|
||||
|
||||
#include "src/autoupdate.h"
|
||||
|
||||
|
@ -329,6 +330,12 @@ 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() << "GeneralForm::reloadSmilies: No emoticons found";
|
||||
return;
|
||||
}
|
||||
|
||||
QStringList smiles;
|
||||
for (int i = 0; i < emoticons.size(); i++)
|
||||
smiles.push_front(emoticons.at(i).first());
|
||||
|
|
Loading…
Reference in New Issue
Block a user