[education/rkward] rkward/plugin: buglets in overwrite confirm box

Thomas Friedrichsmeier null at kde.org
Thu Jul 11 17:50:59 BST 2024


Git commit 9e7e7f1fad7be331302d12d90b7a92ed4ef8953a by Thomas Friedrichsmeier.
Committed on 11/07/2024 at 16:50.
Pushed by tfry into branch 'master'.

buglets in overwrite confirm box

M  +2    -2    rkward/plugin/rkpluginbrowser.cpp

https://invent.kde.org/education/rkward/-/commit/9e7e7f1fad7be331302d12d90b7a92ed4ef8953a

diff --git a/rkward/plugin/rkpluginbrowser.cpp b/rkward/plugin/rkpluginbrowser.cpp
index a6b4ca080..0850922ae 100644
--- a/rkward/plugin/rkpluginbrowser.cpp
+++ b/rkward/plugin/rkpluginbrowser.cpp
@@ -55,11 +55,11 @@ RKPluginBrowser::RKPluginBrowser (const QDomElement &element, RKComponent *paren
 
 	vbox->addWidget (selector);
 
-	overwrite_confirm = new QCheckBox (this);
+	overwrite_confirm = new QCheckBox(i18n("Overwrite?"));
 	connect (overwrite_confirm, &QCheckBox::toggled, this, &RKPluginBrowser::validateInput);
 	vbox->addWidget (overwrite_confirm);
 	overwrite_confirm->setVisible (mode == GetFileNameWidget::SaveFile);
-	auto overwrite_prop = new RKComponentPropertyBool(this, true);
+	auto overwrite_prop = new RKComponentPropertyBool(this, false, false);
 	addChild("overwrite", overwrite_prop);
 	connect(overwrite_confirm, &QCheckBox::toggled, overwrite_prop, [overwrite_prop](bool checked) { if (checked != overwrite_prop->boolValue()) overwrite_prop->setBoolValue(checked); });
 


More information about the rkward-tracker mailing list