QTfrontend/hwform.cpp
changeset 4536 11bd8c7e4118
parent 4535 301df2c84b97
child 4560 5d6c7f88db73
--- a/QTfrontend/hwform.cpp	Wed Dec 15 21:40:16 2010 +0300
+++ b/QTfrontend/hwform.cpp	Wed Dec 15 21:48:54 2010 +0300
@@ -897,8 +897,9 @@
 {
     if(pnetserver) return; // we have server - let it care of all things
     if (hwnet) {
-        hwnet->deleteLater();
+        HWNewNet * tmp = hwnet;
         hwnet = 0;
+        tmp->deleteLater();
         QMessageBox::warning(this, QMessageBox::tr("Network"),
                 QMessageBox::tr("Connection to server is lost"));