diff --git a/retroshare-gui/src/gui/PeersDialog.cpp b/retroshare-gui/src/gui/PeersDialog.cpp index 72ec9a947..8fbf8d0c9 100644 --- a/retroshare-gui/src/gui/PeersDialog.cpp +++ b/retroshare-gui/src/gui/PeersDialog.cpp @@ -38,7 +38,6 @@ #include "profile/ProfileWidget.h" #include "GenCertDialog.h" #include "gui/connect/ConnectFriendWizard.h" -#include "gui/Preferences/rsharesettings.h" #include #include @@ -88,9 +87,6 @@ PeersDialog::PeersDialog(QWidget *parent) { /* Invoke the Qt Designer generated object setup routine */ ui.setupUi(this); - - /* Create RshareSettings object */ - _settings = new RshareSettings(); last_status_send_time = 0 ; @@ -1303,7 +1299,7 @@ void PeersDialog::updateAvatar() void PeersDialog::getAvatar() { - QString fileName = QFileDialog::getOpenFileName(this, "Load File", QDir::homePath(), "Pictures (*.png *.xpm *.jpg)"); + QString fileName = QFileDialog::getOpenFileName(this, "Load File", QDir::homePath(), "Pictures (*.png *.xpm *.jpg *.tiff)"); if(!fileName.isEmpty()) { picture = QPixmap(fileName).scaled(82,82, Qt::IgnoreAspectRatio); @@ -1352,9 +1348,6 @@ void PeersDialog::on_actionCreate_new_Profile_activated() /** Loads own personal status */ void PeersDialog::loadmypersonalstatus() { - //_settings->beginGroup("Profile"); - //ui.mypersonalstatuslabel->setText(_settings->value("StatusMessage","").toString()); - //_settings->endGroup(); ui.mypersonalstatuslabel->setText(QString::fromStdString(rsMsgs->getCustomStateString())); } diff --git a/retroshare-gui/src/gui/PeersDialog.h b/retroshare-gui/src/gui/PeersDialog.h index 7738ab446..06945481e 100644 --- a/retroshare-gui/src/gui/PeersDialog.h +++ b/retroshare-gui/src/gui/PeersDialog.h @@ -25,7 +25,6 @@ #include #include "chat/PopupChatDialog.h" -#include #include "mainpage.h" #include "ui_PeersDialog.h" @@ -165,8 +164,6 @@ private: QFont mCurrentFont; /* how the text will come out */ - /** A RshareSettings object used for saving/loading settings */ - RshareSettings* _settings; /** Qt Designer generated object */ Ui::PeersDialog ui;