mirror of
https://github.com/greenshot/greenshot
synced 2025-08-20 05:23:24 -07:00
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:
parent
b9a1bd76b5
commit
5ce65ab191
3 changed files with 48 additions and 8 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue