[education/rkward] rkward/windows: Silence (harmless) assert

Thomas Friedrichsmeier null at kde.org
Sun Sep 14 19:26:16 BST 2025


Git commit e2a36cee699b30a729d8331a41ca228050f6e7fc by Thomas Friedrichsmeier.
Committed on 11/09/2025 at 17:05.
Pushed by tfry into branch 'master'.

Silence (harmless) assert

M  +3    -1    rkward/windows/rkhtmlwindow.cpp

https://invent.kde.org/education/rkward/-/commit/e2a36cee699b30a729d8331a41ca228050f6e7fc

diff --git a/rkward/windows/rkhtmlwindow.cpp b/rkward/windows/rkhtmlwindow.cpp
index 9f85bf62c..b9703d68a 100644
--- a/rkward/windows/rkhtmlwindow.cpp
+++ b/rkward/windows/rkhtmlwindow.cpp
@@ -642,7 +642,9 @@ void RKHTMLWindow::showEvent(QShowEvent *event) {
 	RK_TRACE(APP);
 	RKMDIWindow::showEvent(event);
 	// see comment in openURL, above
-	if (page->url().isEmpty() && !current_url.isEmpty() && current_url != page->url()) {
+	if (window_mode == HTMLOutputWindow) {
+		page->load(current_url);
+	} else if (page->url().isEmpty() && !current_url.isEmpty() && current_url != page->url()) {
 		QUrl real_url = current_url;
 		current_url.clear();
 		openURL(real_url);



More information about the rkward-tracker mailing list