mirror of
https://github.com/greenshot/greenshot
synced 2025-08-19 13:10:00 -07:00
Fix for bug #1499, prevented to show the Bug-Form! Now showing a MessageBox with the error.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2566 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
36d4975845
commit
b9ca9a06e7
1 changed files with 10 additions and 6 deletions
|
@ -594,12 +594,16 @@ namespace Greenshot.Helpers {
|
||||||
balloonTipClickedHandler = delegate(object sender, EventArgs e) {
|
balloonTipClickedHandler = delegate(object sender, EventArgs e) {
|
||||||
if (eventArgs.MessageType == SurfaceMessageTyp.FileSaved) {
|
if (eventArgs.MessageType == SurfaceMessageTyp.FileSaved) {
|
||||||
if (!string.IsNullOrEmpty(surface.LastSaveFullPath)) {
|
if (!string.IsNullOrEmpty(surface.LastSaveFullPath)) {
|
||||||
ProcessStartInfo psi = new ProcessStartInfo("explorer");
|
try {
|
||||||
psi.Arguments = Path.GetDirectoryName(surface.LastSaveFullPath);
|
ProcessStartInfo psi = new ProcessStartInfo("explorer.exe");
|
||||||
psi.UseShellExecute = false;
|
psi.Arguments = Path.GetDirectoryName(surface.LastSaveFullPath);
|
||||||
Process p = new Process();
|
psi.UseShellExecute = false;
|
||||||
p.StartInfo = psi;
|
Process p = new Process();
|
||||||
p.Start();
|
p.StartInfo = psi;
|
||||||
|
p.Start();
|
||||||
|
} catch (Exception ex) {
|
||||||
|
MessageBox.Show(string.Format("{0}\r\nexplorer.exe {1}", ex.Message, surface.LastSaveFullPath), "explorer.exe", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (!string.IsNullOrEmpty(surface.UploadURL)) {
|
if (!string.IsNullOrEmpty(surface.UploadURL)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue