diff --git a/retroshare-gui/src/gui/PeersDialog.cpp b/retroshare-gui/src/gui/PeersDialog.cpp index c105247e9..5904f8242 100644 --- a/retroshare-gui/src/gui/PeersDialog.cpp +++ b/retroshare-gui/src/gui/PeersDialog.cpp @@ -1,4 +1,4 @@ -/**************************************************************** +/**************************************************************** * RetroShare is distributed under the following license: * * Copyright (C) 2006,2007 crypton @@ -1536,6 +1536,7 @@ void PeersDialog::getAvatar() QString fileName = QFileDialog::getOpenFileName(this, "Load File", QDir::homePath(), "Pictures (*.png *.xpm *.jpg *.tiff *.gif)"); if(!fileName.isEmpty()) { + QPixmap picture; picture = QPixmap(fileName).scaled(82,82, Qt::IgnoreAspectRatio,Qt::SmoothTransformation); #ifdef PEERS_DEBUG diff --git a/retroshare-gui/src/gui/PeersDialog.h b/retroshare-gui/src/gui/PeersDialog.h index 65e19da1c..4984499fe 100644 --- a/retroshare-gui/src/gui/PeersDialog.h +++ b/retroshare-gui/src/gui/PeersDialog.h @@ -55,7 +55,6 @@ public: void loadEmoticonsgroupchat(); // void setChatDialog(ChatDialog *cd); - QPixmap picture; virtual void updateDisplay() ; // overloaded from RsAutoUpdatePage // replaced by shortcut // virtual void keyPressEvent(QKeyEvent *) ;