controlpanelui/src/tonefetcher/src/main.cpp
changeset 29 313976a11e23
parent 22 a5692c68d772
child 43 aae8b749572d
--- a/controlpanelui/src/tonefetcher/src/main.cpp	Fri Jul 23 11:04:51 2010 +0800
+++ b/controlpanelui/src/tonefetcher/src/main.cpp	Thu Aug 05 11:28:29 2010 +0800
@@ -25,12 +25,17 @@
 {
     HbApplication a(argc, argv);
     
-    
+#ifdef ENABLE_TONEFETCHER_LOG
     Logger::instance(TONEFETCHER_LOGGER_NAME)->configure(
             TF_LOGGER_CONFIG_PATH,QSettings::IniFormat);
-
+#endif
     TF_LOG("Entering tonefetcher.exe...");
     ToneFetcherMainWindow w;   
     w.show();
-    return a.exec();
+    int ret = a.exec();
+    TF_LOG("Leaving tonefetcher.exe...");
+#ifdef ENABLE_TONEFETCHER_LOG
+    Logger::closeAll();
+#endif
+    return ret;
 }