mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-21 05:39:11 -04:00
Source code maintenance
Memory leaks: - NetworkDialog::loadcert -> new QFileDialog - NetworkDialog::insertConnect -> takeTopLevelItem - NetworkDialog::on_actionAddFriend_activated -> new QFileDialog - main -> new StartDialog, new GenCertDialog to be continued Info: Pointer from takeTopLevelItem must be deleted Can someone convert the StartDialog from QMainWindow to QDialog ? git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2833 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
8957fb919c
commit
8ce338c49c
6 changed files with 40 additions and 81 deletions
|
@ -22,7 +22,6 @@
|
|||
#include <rshare.h>
|
||||
#include <rsiface/rsinit.h>
|
||||
#include "StartDialog.h"
|
||||
#include "GenCertDialog.h"
|
||||
#include "InfoDialog.h"
|
||||
#include "LogoBar.h"
|
||||
#include <QFileDialog>
|
||||
|
@ -132,7 +131,7 @@ void StartDialog::loadPerson()
|
|||
if (pgpidx < 0)
|
||||
{
|
||||
/* Message Dialog */
|
||||
QMessageBox::StandardButton sb = QMessageBox::warning ( NULL,
|
||||
QMessageBox::warning ( NULL,
|
||||
"Load Person Failure",
|
||||
"Missing PGP Certificate",
|
||||
QMessageBox::Ok);
|
||||
|
@ -164,7 +163,7 @@ void StartDialog::loadCertificates()
|
|||
else
|
||||
{
|
||||
/* some error msg */
|
||||
QMessageBox::StandardButton sb = QMessageBox::warning ( NULL,
|
||||
QMessageBox::warning ( NULL,
|
||||
tr("Login Failure"),
|
||||
tr("Maybe password is wrong"),
|
||||
QMessageBox::Ok);
|
||||
|
@ -175,15 +174,12 @@ void StartDialog::loadCertificates()
|
|||
|
||||
void StartDialog::on_labelProfile_linkActivated(QString link)
|
||||
{
|
||||
//static GenCertDialog *gencertdialog = new GenCertDialog();
|
||||
//gencertdialog->show();
|
||||
|
||||
QMessageBox::StandardButton sb = QMessageBox::question ( NULL,
|
||||
tr("Create a New Profile"),
|
||||
tr("This will generate a new Profile\n Are you sure you want to continue"),
|
||||
(QMessageBox::Ok | QMessageBox::No));
|
||||
(QMessageBox::Yes | QMessageBox::No));
|
||||
|
||||
if (sb == QMessageBox::Ok)
|
||||
if (sb == QMessageBox::Yes)
|
||||
{
|
||||
reqNewCert = true;
|
||||
close();
|
||||
|
@ -192,8 +188,8 @@ void StartDialog::on_labelProfile_linkActivated(QString link)
|
|||
|
||||
void StartDialog::on_labelInfo_linkActivated(QString link)
|
||||
{
|
||||
static InfoDialog *infodialog = new InfoDialog();
|
||||
infodialog->show();
|
||||
InfoDialog infodialog (this);
|
||||
infodialog.exec ();
|
||||
}
|
||||
|
||||
bool StartDialog::requestedNewCert()
|
||||
|
@ -209,7 +205,7 @@ void StartDialog::notSecureWarning() {
|
|||
|
||||
/* some error msg */
|
||||
if(ui.autologin_checkbox->isChecked()){
|
||||
QMessageBox::StandardButton sb = QMessageBox::warning ( NULL,
|
||||
QMessageBox::warning ( NULL,
|
||||
tr("Insecure"),
|
||||
tr("Auto Login is not so much secure:\n - Your SSL certificate will be stored unprotected. \n - Your PGP key will however not be stored.\nThis choice be reverted in settings."),
|
||||
QMessageBox::Ok);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue