1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

blasted scoping issue

This commit is contained in:
dubslow 2014-09-27 17:36:19 -05:00
parent eb67f9b3dd
commit 8abcc3b77d

View File

@ -267,7 +267,7 @@ QPixmap Settings::getSavedAvatar(const QString &ownerId)
{
QString filePath = dir.filePath("avatar_"+ownerId.left(64));
if (!QFileInfo(filePath).exists()) // try without truncation, for old self avatars
QString filePath = dir.filePath("avatar_"+ownerId);
filePath = dir.filePath("avatar_"+ownerId);
pic.load(filePath);
saveAvatar(pic, ownerId);
QFile::remove(filePath);