mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Merge remote-tracking branch 'rowenstipe/master'
This commit is contained in:
commit
8185893ab5
|
@ -24,6 +24,7 @@
|
|||
#include <QObject>
|
||||
#include <QMutexLocker>
|
||||
#include <atomic>
|
||||
#include <cmath>
|
||||
|
||||
#if defined(__APPLE__) && defined(__MACH__)
|
||||
#include <OpenAL/al.h>
|
||||
|
|
|
@ -524,11 +524,7 @@ void HistoryKeeper::removeAvatar(const QString& ownerId)
|
|||
bool HistoryKeeper::hasAvatar(const QString& ownerId)
|
||||
{
|
||||
QSqlQuery sqlAnswer = db->exec(QString("SELECT avatar FROM aliases WHERE user_id= '%1'").arg(ownerId.left(64)));
|
||||
if (sqlAnswer.first() && sqlAnswer.value(0).toByteArray()!=NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
return !sqlAnswer.isNull(0);
|
||||
}
|
||||
|
||||
void HistoryKeeper::saveAvatar(QPixmap& pic, const QString& ownerId)
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
#include "movablewidget.h"
|
||||
#include <QMouseEvent>
|
||||
#include <QGraphicsOpacityEffect>
|
||||
#include <cmath>
|
||||
|
||||
MovableWidget::MovableWidget(QWidget *parent)
|
||||
: QWidget(parent)
|
||||
|
|
Loading…
Reference in New Issue
Block a user