From 805eecd7bd555e4b76aad24a02428c7df224568a Mon Sep 17 00:00:00 2001 From: defnax Date: Sun, 4 Oct 2009 15:21:04 +0000 Subject: [PATCH] removed not gui _settings on PeersDialog git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1711 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- retroshare-gui/src/gui/PeersDialog.cpp | 9 +-------- retroshare-gui/src/gui/PeersDialog.h | 3 --- 2 files changed, 1 insertion(+), 11 deletions(-) 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;