mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-10 01:55:19 -04:00
code cleaning
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2006 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
d2a1084c27
commit
6055c30832
3 changed files with 1 additions and 57 deletions
|
@ -41,12 +41,6 @@ StartDialog::StartDialog(QWidget *parent, Qt::WFlags flags)
|
|||
/* Invoke Qt Designer generated QObject setup routine */
|
||||
ui.setupUi(this);
|
||||
|
||||
/**
|
||||
#if (QT_VERSION >= 040300)
|
||||
skinobject = new QSkinObject(this);
|
||||
skinobject->startSkinning();
|
||||
#endif**/
|
||||
|
||||
RshareSettings config;
|
||||
config.loadWidgetInformation(this);
|
||||
|
||||
|
@ -71,8 +65,6 @@ StartDialog::StartDialog(QWidget *parent, Qt::WFlags flags)
|
|||
/* load the Certificate File name */
|
||||
std::string userName;
|
||||
|
||||
#ifdef RS_USE_PGPSSL
|
||||
|
||||
#ifndef WINDOWS_SYS /* UNIX */
|
||||
//hide autologin because it's not functionnal on other than windows system
|
||||
ui.autoBox->hide();
|
||||
|
@ -123,48 +115,6 @@ StartDialog::StartDialog(QWidget *parent, Qt::WFlags flags)
|
|||
{
|
||||
ui.loadName->setCurrentIndex(pidx);
|
||||
}
|
||||
|
||||
#if 0
|
||||
std::list<std::string> pgpIds;
|
||||
std::list<std::string>::iterator it;
|
||||
if (RsInit::GetPGPLogins(pgpIds))
|
||||
{
|
||||
for(it = pgpIds.begin(); it != pgpIds.end(); it++)
|
||||
{
|
||||
const QVariant & userData = QVariant(QString::fromStdString(*it));
|
||||
std::string name, email;
|
||||
RsInit::GetPGPLoginDetails(*it, name, email);
|
||||
ui.loadName->addItem(QString::fromStdString(name), userData);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#else
|
||||
|
||||
if (RsInit::ValidateCertificate(userName))
|
||||
{
|
||||
/* just need to enter password */
|
||||
ui.loadName->addItem(QString::fromStdString(userName));
|
||||
//ui.loadName->setText(QString::fromStdString(userName));
|
||||
ui.loadPasswd->setFocus(Qt::OtherFocusReason);
|
||||
ui.loadButton -> setEnabled(true);
|
||||
}
|
||||
else
|
||||
{
|
||||
/* need to generate new user */
|
||||
ui.loadName->addItem("<No Existing User>");
|
||||
//ui.loadName->setText("<No Existing User>");
|
||||
ui.loadButton -> setEnabled(false);
|
||||
//ui.genName->setFocus(Qt::OtherFocusReason);
|
||||
}
|
||||
#ifndef Q_WS_WIN
|
||||
ui.autoBox->setChecked(false) ;
|
||||
ui.autoBox->setEnabled(false) ;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
//ui.genFriend -> setText("<None Selected>");
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue