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

[vidalia-svn] r3851: Set the build version, executable and any arguments used to (vidalia/branches/breakpad/src/vidalia)



Author: edmanm
Date: 2009-06-14 19:13:09 -0400 (Sun, 14 Jun 2009)
New Revision: 3851

Modified:
   vidalia/branches/breakpad/src/vidalia/main.cpp
Log:

Set the build version, executable and any arguments used to start Vidalia
when we install the exception handler.


Modified: vidalia/branches/breakpad/src/vidalia/main.cpp
===================================================================
--- vidalia/branches/breakpad/src/vidalia/main.cpp	2009-06-14 23:11:18 UTC (rev 3850)
+++ vidalia/branches/breakpad/src/vidalia/main.cpp	2009-06-14 23:13:09 UTC (rev 3851)
@@ -54,6 +54,15 @@
     return;
   }
 
+  /* Set the Vidalia executable and options used to restart Vidalia after a 
+   * crash. We strip off the first argument in Vidalia::arguments(), since
+   * it's the application name again anyway. */
+  CrashReporter::set_restart_options(Vidalia::applicationFilePath(),
+                                     Vidalia::arguments().mid(1));
+
+  /* Set the build version that gets saved with a minidump. */
+  CrashReporter::set_build_version(VIDALIA_VERSION);
+
   /* Install the exception handler and give it the location to which Breakpad
    * should write its minidumps. */
   QString dumpPath = Vidalia::dataDirectory() + "/crashreports";