Fixed a problem with loading the icon from a share, also preventing a NullPointerReference in the MainForm

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2418 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
RKrom 2013-01-08 10:20:31 +00:00
commit 5ce65ab191
3 changed files with 48 additions and 8 deletions

View file

@ -784,13 +784,15 @@ namespace Greenshot {
ToolStripMenuItem captureWindowItem = sender as ToolStripMenuItem;
WindowDetails window = captureWindowItem.Tag as WindowDetails;
if (thumbnailForm == null) {
thumbnailForm = new ThumbnailForm();
thumbnailForm = new ThumbnailForm();
}
thumbnailForm.ShowThumbnail(window, captureWindowItem.GetCurrentParent().TopLevelControl);
thumbnailForm.ShowThumbnail(window, captureWindowItem.GetCurrentParent().TopLevelControl);
}
private void HideThumbnailOnLeave(object sender, EventArgs e) {
thumbnailForm.Hide();
if (thumbnailForm != null) {
thumbnailForm.Hide();
}
}
private void cleanupThumbnail() {