[education/rkward] rkward/settings: Fix bad assignment

Thomas Friedrichsmeier null at kde.org
Tue Apr 12 12:18:14 BST 2022


Git commit 22fcefe2973cf1721784e9b39117e08de412b12d by Thomas Friedrichsmeier.
Committed on 12/04/2022 at 11:18.
Pushed by tfry into branch 'master'.

Fix bad assignment

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

https://invent.kde.org/education/rkward/commit/22fcefe2973cf1721784e9b39117e08de412b12d

diff --git a/rkward/settings/rksettingsmodulegeneral.cpp b/rkward/settings/rksettingsmodulegeneral.cpp
index 98e0ff58..2c7875f1 100644
--- a/rkward/settings/rksettingsmodulegeneral.cpp
+++ b/rkward/settings/rksettingsmodulegeneral.cpp
@@ -209,7 +209,7 @@ void RKSettingsModuleGeneral::syncConfig(KConfig *config, RKConfigBase::ConfigSy
 	startup_action.syncConfig(cg, a);
 	show_help_on_startup.syncConfig(cg, a);
 	initial_dir.syncConfig(cg, a);
-	if ((a == RKConfigBase::SaveConfig) && (initial_dir = LastUsedDirectory)) {
+	if ((a == RKConfigBase::SaveConfig) && (initial_dir == LastUsedDirectory)) {
 		cg.writeEntry(initial_dir_specification.key(), QDir::currentPath());
 	} else {
 		initial_dir_specification.syncConfig(cg, a);


More information about the rkward-tracker mailing list