src/Builder4/MainWindow.vala
"\tif (ws == null) {",
"\t\treturn;",
"\t}",
- "\tws.fileViewOpen(ws.file, ws.file_details.new_window, -1);",
+ "\tif (ws.file.path != this.windowstate.file.path) {",
+ "\t\tthis.windowstate.fileViewOpen(ws.file, ws.file_details.new_window, -1);",
+ "\t}",
"\tthis.selectCurrent();",
" }"
]
if (ws == null) {
return;
}
- ws.fileViewOpen(ws.file, ws.file_details.new_window, -1);
+ if (ws.file.path != this.windowstate.file.path) {
+ this.windowstate.fileViewOpen(ws.file, ws.file_details.new_window, -1);
+ }
this.selectCurrent();
});
}