X-Git-Url: http://git.maemo.org/git/?p=speedfreak;a=blobdiff_plain;f=Client%2Fmainwindow.cpp;h=f86681c265e4cac66a72c79572fb039e6351c6e1;hp=27a1f4bf0a5a10c86b8ede728453408c81aee26f;hb=e5d88e68d49f961be9edd1ee1a390c6b0fb88094;hpb=d0cd7d9965b19cc40cd090e0504795e1275e4c82 diff --git a/Client/mainwindow.cpp b/Client/mainwindow.cpp index 27a1f4b..f86681c 100644 --- a/Client/mainwindow.cpp +++ b/Client/mainwindow.cpp @@ -168,6 +168,9 @@ MainWindow::~MainWindow() if(helpDialog) delete helpDialog; + if(usersDialog) + delete usersDialog; + if(customButtonAccelerate) delete customButtonAccelerate; if(customButtonRoute) @@ -343,6 +346,12 @@ void MainWindow::killDialog() delete helpDialog; helpDialog = NULL; } + if(usersDialog) + { + qDebug() << "__MW kill: usersDialog"; + delete usersDialog; + usersDialog = NULL; + } } /** @@ -464,5 +473,6 @@ void MainWindow::on_pushButtonUsers_clicked() connect(usersDialog, SIGNAL(getUserInfo(QString)), this, SLOT(requestGetUserInfo(QString))); //connect(usersDialog, SIGNAL(getUsers()), this, SLOT(requestGetUsers())); requestGetUsers(); + connect(usersDialog, SIGNAL(rejected()), this, SLOT(killDialog())); usersDialog->show(); }