<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -64,10 +64,11 @@ Workflow::Workflow(PlugGui::Container * container, BreadCrumbBar * bar, QObject
 
 Workflow::~Workflow()
 {
-    // delete all the appliances, discarding changes
-    // saving should have been done at the exit request. here we drop the rest
-    while (!m_stack.isEmpty())
+    // warn if we have any appliance left, shouldn't be
+    while (!m_stack.isEmpty()) {
+        qWarning(&quot;Workflow::~Workflow: not empty stack. dropping all&quot;);
         popNode(true);
+    }
 
     // unset the global reference
     App::workflow = 0;
@@ -174,7 +175,9 @@ bool Workflow::requestExit()
         return true;
     }
 
-    // handle Quit (the distructor will pop apps without saving changes)
+    // handle Quit without saving
+    while (!m_stack.isEmpty())
+        popNode(true);
     return true;
 }
 </diff>
      <filename>App/Workflow.cpp</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>bca1a9f04c9d9280cdf6ba1922e7a74b64eb140c</id>
    </parent>
  </parents>
  <author>
    <name>Enrico Ros</name>
    <email>enrico.ros@gmail.com</email>
  </author>
  <url>http://github.com/enricoros/fotowall/commit/063c9b38af5d9651139b1f26a03b503721eb24d7</url>
  <id>063c9b38af5d9651139b1f26a03b503721eb24d7</id>
  <committed-date>2009-11-06T03:26:30-08:00</committed-date>
  <authored-date>2009-11-06T03:26:30-08:00</authored-date>
  <message>Small change to enforce good cleanup logic.</message>
  <tree>d1ccc233f8346801ec19776b5e9196bbe6f89439</tree>
  <committer>
    <name>Enrico Ros</name>
    <email>enrico.ros@gmail.com</email>
  </committer>
</commit>
