Author: remi
Date: 2009-01-15 12:08:33 +0100 (Thu, 15 Jan 2009)
New Revision: 3467

Modified:
   software_suite_v2/software/tools/attitunesStudio/trunk/src/MainFrame.java
Log:
* Fixed "new" "load" and "exit" behavior when an attitunes need to be saved 
first.

Modified: 
software_suite_v2/software/tools/attitunesStudio/trunk/src/MainFrame.java
===================================================================
--- software_suite_v2/software/tools/attitunesStudio/trunk/src/MainFrame.java   
2009-01-15 10:15:09 UTC (rev 3466)
+++ software_suite_v2/software/tools/attitunesStudio/trunk/src/MainFrame.java   
2009-01-15 11:08:33 UTC (rev 3467)
@@ -500,6 +500,10 @@
                        if (result == JOptionPane.YES_OPTION)
                        {
                                onMenuItemSave(menuItem);
+                               if (attBlockViewer.getSceneHaveChanged())
+                               {
+                                       return;
+                               }
                        }
                }
                /* Load the template */
@@ -530,6 +534,10 @@
                        if (result == JOptionPane.YES_OPTION)
                        {
                                onMenuItemSave(menuItem);
+                               if (attBlockViewer.getSceneHaveChanged())
+                               {
+                                       return;
+                               }
                        }
                }
                /* Load a file viewer to select an attitune */
@@ -678,6 +686,10 @@
                                {
                                        return;
                                }
+                               if (attBlockViewer.getSceneHaveChanged())
+                               {
+                                       return;
+                               }
                        }
                }
                /* Destroy the viewer an exit the application */


------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn

Reply via email to