[ImageJ-bugs] [Bug 1022] Orphan windows when Quit was cancelled

bugzilla at fiji.sc bugzilla at fiji.sc
Thu Mar 12 12:11:23 CDT 2015


http://fiji.sc/bugzilla/show_bug.cgi?id=1022

--- Comment #6 from Wayne Rasband <wsr at nih.gov> ---
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();

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://imagej.net/pipermail/imagej-bugs/attachments/20150312/9e77578b/attachment.html>


More information about the Imagej-bugs mailing list