[education/rkward] rkward/settings: Fix assert

Thomas Friedrichsmeier null at kde.org
Sat Mar 12 23:15:38 GMT 2022


Git commit a3f946f38a31fc222c15865c7a0935b59e60bc44 by Thomas Friedrichsmeier.
Committed on 12/03/2022 at 22:01.
Pushed by tfry into branch 'master'.

Fix assert

M  +1    -1    rkward/settings/rksettings.cpp

https://invent.kde.org/education/rkward/commit/a3f946f38a31fc222c15865c7a0935b59e60bc44

diff --git a/rkward/settings/rksettings.cpp b/rkward/settings/rksettings.cpp
index 6b825dbd..c4f81177 100644
--- a/rkward/settings/rksettings.cpp
+++ b/rkward/settings/rksettings.cpp
@@ -107,7 +107,7 @@ RKSettings::RKSettings (QWidget *parent) : KPageDialog (parent) {
 	initModules ();
 
 	connect (this, &KPageDialog::currentPageChanged, this, &RKSettings::pageChange);
-	pageChange (currentPage (), currentPage ());	// init
+	setCurrentPage(pages[0]); // init -> see pageChange
 }
 
 RKSettings::~RKSettings() {



More information about the rkward-tracker mailing list