Fix a bug where new, unmodified tabs would pester on close.
This commit is contained in:
parent
711f3230c3
commit
6d262c35fb
1 changed files with 1 additions and 1 deletions
|
@ -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.",
|
||||
[
|
||||
|
|
Loading…
Reference in a new issue