Omzetting naar stdio.

This commit is contained in:
2026-08-03 08:22:42 +02:00
parent fb1a293e88
commit d9af82d230
9 changed files with 829 additions and 554 deletions
+6 -7
View File
@@ -180,15 +180,14 @@ void Rktwebview_qt::processCommand(Command *cmd)
case COMMAND_CLOSE: {
int wv = cmd->args[0].toInt();
if (_views.contains(wv)) {
WebviewWindow *w= _views[wv];
_views.remove(wv);
WebviewWindow *w = _views[wv];
// WebviewWindow::closeEvent removes the view administration and
// schedules the window and web view with deleteLater(). Do not
// inspect or delete w after closeView(): processing the close
// event can already have scheduled or performed its destruction.
w->closeView();
cmd->result = true;
while(w->isVisible()) {
_app->processEvents();
}
_view_js_callbacks.remove(wv);
delete w;
} else if (_trays.contains(wv)) {
QSystemTrayIcon *tray = _trays[wv];
_trays.remove(wv);