Fix a bug where new, unmodified tabs would pester on close.

This commit is contained in:
Thomas Wilburn 2014-04-23 10:15:14 -07:00
parent 711f3230c3
commit 6d262c35fb

View file

@ -88,7 +88,7 @@ require([
var cancelled = false;
var tabs = sessions.getAllTabs();
M.serial(tabs, function(tab, c) {
if (!tab.file || (tab.file && tab.modified)) {
if (tab.modified && (!tab.file || !tab.file.virtual)) {
return dialog(
tab.fileName + " has unsaved work.",
[