1
0
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:
Dubslow 2015-03-16 17:47:15 -05:00
commit 42fe29e83d
No known key found for this signature in database
GPG Key ID: 3DB8E05315C220AA

View File

@ -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());