From: Dirk H Bartley Date: Sat, 14 Apr 2007 01:24:24 +0000 (+0000) Subject: dhb Possible fix of segfault when cancel is pressed in label dialog. X-Git-Tag: Release-2.2.0~733 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c4818b227896ed5f8f4d0a2139e36364834d3912;p=bacula%2Fbacula dhb Possible fix of segfault when cancel is pressed in label dialog. git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4544 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/qt-console/label/label.cpp b/bacula/src/qt-console/label/label.cpp index 03fd5ebaed..bb5e08dba1 100644 --- a/bacula/src/qt-console/label/label.cpp +++ b/bacula/src/qt-console/label/label.cpp @@ -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(); }