Ignore:
Timestamp:
2/12/2010 3:49:03 AM (2 years ago)
Author:
lowjoel
Message:

Forward port from Eraser 6.0: When executing links we may get errors from ShellExecute?, so display these errors instead of crashing.

Location:
trunk/eraser6
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/eraser6

  • trunk/eraser6/Eraser/MainForm.cs

    r1822 r1825  
    326326        private void eraserLogo_Click(object sender, EventArgs e) 
    327327        { 
    328             Process.Start("http://eraser.heidi.ie/"); 
     328            try 
     329            { 
     330                Process.Start("http://eraser.heidi.ie/"); 
     331            } 
     332            catch (Win32Exception ex) 
     333            { 
     334                //We've got an error executing the the browser to pass the links: show an error 
     335                //to the user. 
     336                MessageBox.Show(S._("Could not open the required web page. The error returned " + 
     337                    "was: {0}", ex.Message), S._("Eraser"), MessageBoxButtons.OK, 
     338                    MessageBoxIcon.Error, MessageBoxDefaultButton.Button1, 
     339                    Localisation.IsRightToLeft(this) ? 
     340                        MessageBoxOptions.RtlReading | MessageBoxOptions.RightAlign : 0); 
     341            } 
    329342        } 
    330343 
Note: See TracChangeset for help on using the changeset viewer.