Omzetting naar stdio.
This commit is contained in:
+6
-7
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user