]> git.sur5r.net Git - bacula/bacula/commitdiff
dhb Possible fix of segfault when cancel is pressed in label dialog.
authorDirk H Bartley <dbartley@schupan.com>
Sat, 14 Apr 2007 01:24:24 +0000 (01:24 +0000)
committerDirk H Bartley <dbartley@schupan.com>
Sat, 14 Apr 2007 01:24:24 +0000 (01:24 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4544 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/qt-console/label/label.cpp

index 03fd5ebaed9775dcafd41d9c3dcc43f4159a7479..bb5e08dba133c9c9489d28f6fa7f7a4d7f36bd30 100644 (file)
@@ -71,7 +71,12 @@ void labelDialog::reject()
 {
    printf("Rejected\n");
    this->hide();
-   delete this;
-   mainWin->resetFocus();
    m_console->notify(true);
+   /*  believe use of member must occur before delete 
+ *  FIXME which do you like better
+ *  delete this;
+ *    or
+ *  close(); */ 
+   close();
+   mainWin->resetFocus();
 }