[gnote] Uncomment log file message



commit 48d9d73c0ae36dd1bb3eb7aa6a1012d9a8f2d33e
Author: Aurimas Äernius <aurisc4 gmail com>
Date:   Sun Jun 17 19:56:11 2012 +0300

    Uncomment log file message
    
    Also correct coding style.

 src/preferencesdialog.cpp |   11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/src/preferencesdialog.cpp b/src/preferencesdialog.cpp
index f57db25..830adca 100644
--- a/src/preferencesdialog.cpp
+++ b/src/preferencesdialog.cpp
@@ -1242,7 +1242,8 @@ namespace gnote {
         // TODO: Put this voodoo in a method somewhere
         ActionManager::obj()["NoteSynchronizationAction"]->activate();
       }
-    } else {
+    }
+    else {
       // TODO: Change the SyncServiceAddin API so the call to
       // SaveConfiguration has a way of passing back an exception
       // or other text so it can be displayed to the user.
@@ -1257,11 +1258,9 @@ namespace gnote {
       // Give the user a visual letting them know that connecting
       // was successful.
       if(errorMsg == "") {
-        errorMsg = _("Please check your information and try again.  The log file {0} may contain more information about the error.");
-        /*errorMsg = _("Please check your information and try again.  The log file {0} may contain more information about the error.");
-        string logPath = System.IO.Path.Combine (Services.NativeApplication.LogDirectory,
-                                                 "tomboy.log");
-        errorMsg = String.Format (errorMsg, logPath);*/
+        errorMsg = _("Please check your information and try again.  The log file %1% may contain more information about the error.");
+        std::string logPath = Glib::build_filename(Glib::get_home_dir(), "gnote.log");
+        errorMsg = str(boost::format(errorMsg) % logPath);
       }
       dialog = new utils::HIGMessageDialog(this, GTK_DIALOG_MODAL, Gtk::MESSAGE_WARNING, Gtk::BUTTONS_CLOSE,
         _("Error connecting"), errorMsg);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]