sysresmonitoring/oodmonitor/oodmonitor2/src/outofdisknotifyobserver.cpp
branchRCL_3
changeset 70 739cef680932
parent 0 2e3d3ce01487
child 82 4610cd70c542
--- a/sysresmonitoring/oodmonitor/oodmonitor2/src/outofdisknotifyobserver.cpp	Tue Sep 14 21:35:53 2010 +0300
+++ b/sysresmonitoring/oodmonitor/oodmonitor2/src/outofdisknotifyobserver.cpp	Wed Sep 15 12:23:15 2010 +0300
@@ -1,5 +1,5 @@
 /*
-* Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). 
+* Copyright (c) 2007-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"
@@ -153,10 +153,13 @@
 	
     TInt status = iOutOfDiskMonitor->GetDriveStatus(aDrive);
     iOutOfDiskMonitor->SaveDriveStatus(aDrive, status, ETrue);
-    iOutOfDiskMonitor->ShowGlobalQueryIfNeededL();
-    NotifyDiskSpace(warningThreshold, 
+    if(status == KErrNone)
+        {
+        iOutOfDiskMonitor->ShowGlobalQueryIfNeededL();            
+        NotifyDiskSpace(warningThreshold, 
                     criticalThreshold, 
                     aDrive);
+        }
     TRACES("COutOfDiskNotifyObserver::DiskAddedL: End");
     }