Solving issue 2324: "Crash when creating detail window" / Credits: Ingo, Hombre

This commit is contained in:
natureh.510
2014-04-03 23:15:48 +02:00
parent d79d3c3f7a
commit 2b873eb0d4
5 changed files with 12 additions and 6 deletions

View File

@@ -459,8 +459,12 @@ void CropWindow::buttonRelease (int button, int num, int bstate, int x, int y) {
if (decorated)
buttonSet.releaseNotify (x, y);
if (deleted)
if (deleted) {
iarea->flawnOverWindow = NULL;
delete this;
return;
}
state = SNormal;
iarea->grabFocus (NULL);