|
Bugzilla – Bug 1022 |
Orphan windows when Quit was cancelled |
Last modified: 2015-04-21 11:40:28 CDT |
| ⚠ |
NOTICE! This is a static HTML version of a legacy Fiji BugZilla bug. The Fiji project now uses GitHub Issues for issue tracking. Please file all new issues there. |
|
|
|
||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
When you quit Fiji while there are unsaved images, a dialog will ask whether to save changes for each modified image. After cancelling one of the dialogs, the corresponding image window remains open but is inaccessible via the Window menu, and cannot be closed by its window's close button. To reproduce, you can use the following macro code. Run it and press Cancel in the first dialog. A blobs.gif window will remain open, but there's no blobs.gif entry in the Window menu, and you cannot close the window. Running File>Close will result in a message "There are no images open." run("Blobs (25K)"); run("Invert"); run("Blobs (25K)"); run("Invert"); run("Quit"); selectWindow("blobs-1.gif"); close(); Information about your version of Java: os.arch => amd64 os.name => Windows 7 os.version => 6.1 java.version => 1.6.0_24 java.vendor => Sun Microsystems Inc. java.runtime.name => Java(TM) SE Runtime Environment java.runtime.version => 1.6.0_24-b07 java.vm.name => Java HotSpot(TM) 64-Bit Server VM java.vm.version => 19.1-b02 java.vm.vendor => Sun Microsystems Inc. java.vm.info => mixed mode java.awt.graphicsenv => sun.awt.Win32GraphicsEnvironment java.specification.name => Java Platform API Specification java.specification.version => 1.6 sun.cpu.endian => little sun.desktop => windows file.separator => \ The up-to-date check says: REMIND_LATER Information relevant to JAVA_HOME related problems: JAVA_HOME is set to: C:\UTILIT~1\FIJI-D~1.APP/java/win64/jdk1.6.0_24//jre imagej.dir => C:\UTILIT~1\FIJI-D~1.APP Information about the version of each plugin: Activated update sites: ImageJ: http://update.imagej.net/ (last check:20150309141004) Fiji: http://fiji.sc/update/ (last check:20150310172923)Macro functions that close image windows (e.g., close(), run("Close"), run("Close All") and run("Quit")) do not display "save changes" dialogs. Here is a version of the test macro that displays a dialog before calling run("Quit"): run("Blobs (25K)"); run("Invert"); run("Blobs (25K)"); run("Invert"); n = 0; for (i=1; i<=nImages; i++) { selectImage(i); if (is("changes")) n++; } if (n>0) { msg = "There are "+n+" images with changes"; showMessageWithCancel("Quit?", msg); } run("Quit"); selectWindow("blobs-1.gif"); close();