Skip to content

Commit 51b497b

Browse files
committed
Fix for "Exception, no window attached to view" when cold opening a file on Mac
1 parent 18ef344 commit 51b497b

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

packages/macos/TeXmacs.xcodeproj/project.pbxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4126,6 +4126,7 @@
41264126
isa = PBXGroup;
41274127
children = (
41284128
9C0B48A410A8CC100097A335 /* NOTES */,
4129+
9C0B48BE10A8CC100097A335 /* TODO */,
41294130
4901F0E4128B4F7200CC54C6 /* qt_printer_widget.cpp */,
41304131
9C225A63128B5EB00039258C /* qt_chooser_widget.cpp */,
41314132
9C088F7312B1BAD000A18E04 /* qt_color_picker_widget.cpp */,
@@ -4184,7 +4185,6 @@
41844185
9C0B48BB10A8CC100097A335 /* QTMWidget.hpp */,
41854186
9C0B48BC10A8CC100097A335 /* QTMWindow.cpp */,
41864187
9C0B48BD10A8CC100097A335 /* QTMWindow.hpp */,
4187-
9C0B48BE10A8CC100097A335 /* TODO */,
41884188
);
41894189
path = Qt;
41904190
sourceTree = "<group>";

src/Plugins/Qt/QTMGuiHelper.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ QTMGuiHelper::eventFilter (QObject *obj, QEvent *event) {
4040
const char* s = openEvent->file().toUtf8().constData();
4141
//qDebug ("File Open Event %s", s);
4242
const char *win= new_window_flag? ":new-window": ":current-window";
43-
call ("load-buffer", object (url_system (s)), eval (win));
43+
exec_delayed (scheme_cmd (list_object (symbol_object ("load-buffer"),
44+
object (url_system (s)), eval (win))));
4445
new_window_flag= true;
4546
return true;
4647
} else {

src/Plugins/Qt/qt_gui.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -936,6 +936,7 @@ qt_gui_rep::refresh_language() {
936936
*/
937937
void
938938
qt_gui_rep::show_help_balloon (widget wid, SI x, SI y) {
939+
cout << "*"; cout.flush();
939940
if (popup_wid_time > 0) return;
940941

941942
_popup_wid = popup_window_widget (wid, "Balloon");

0 commit comments

Comments
 (0)