mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-03 06:35:08 -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
|
@ -91,6 +91,7 @@ int main(int argc, char *argv[])
|
|||
|
||||
/* if we're logged in */
|
||||
genCert = sd->requestedNewCert();
|
||||
delete (sd);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -99,19 +100,8 @@ int main(int argc, char *argv[])
|
|||
|
||||
if (genCert)
|
||||
{
|
||||
GenCertDialog *gd = new GenCertDialog();
|
||||
|
||||
gd->show();
|
||||
|
||||
while(gd -> isVisible())
|
||||
{
|
||||
rshare.processEvents();
|
||||
#ifdef WIN32
|
||||
Sleep(10);
|
||||
#else // __LINUX__
|
||||
usleep(10000);
|
||||
#endif
|
||||
}
|
||||
GenCertDialog gd;
|
||||
gd.exec ();
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue