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:
parent
eb67f9b3dd
commit
8abcc3b77d
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user