usbuis/usbuinotif/src/usbuincableconnectednotifier.cpp
changeset 56 f45583a69686
parent 38 218231f2b3b3
child 63 ef2686f7597e
--- a/usbuis/usbuinotif/src/usbuincableconnectednotifier.cpp	Fri Jun 11 14:38:00 2010 +0300
+++ b/usbuis/usbuinotif/src/usbuincableconnectednotifier.cpp	Wed Jun 23 19:20:39 2010 +0300
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
+ * Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies).
  * All rights reserved.
  * This component and the accompanying materials are made available
  * under the terms of "Eclipse Public License v1.0"
@@ -98,7 +98,6 @@
 
 // ----------------------------------------------------------------------------
 // CUSBUICableConnectedNotifier::StartDialogL
-//  Jump to RunL as soon as possible.
 // ----------------------------------------------------------------------------
 //
 void CUSBUICableConnectedNotifier::StartDialogL(const TDesC8& /*aBuffer*/,
@@ -115,6 +114,12 @@
     iMessage = aMessage;
     iNeedToCompleteMessage = ETrue;
     iReplySlot = aReplySlot;
+    if (iDialog)
+        {
+        FLOG(_L("[USBUINOTIF]\t CUSBUICableConnectedNotifier::StartDialogL() deleting previous dialog"));
+        delete iDialog;
+        iDialog = NULL;
+        }
     iDialog = CHbDeviceNotificationDialogSymbian::NewL(this);
       
     HBufC* header = NULL;
@@ -154,7 +159,7 @@
 
 // -----------------------------------------------------------------------------------------------------------
 // CUSBUICableConnectedNotifier::GetPersonalityStringL
-// Get the strings for ask on connection message query 
+// Get the strings for the discreet popup dialog
 // -----------------------------------------------------------------------------------------------------------
 //
 void CUSBUICableConnectedNotifier::GetPersonalityStringLC(