[rkward] /: Small fixes

Thomas Friedrichsmeier thomas.friedrichsmeier at ruhr-uni-bochum.de
Wed Nov 25 21:22:24 UTC 2015


Git commit 6b88de1bedc5c0556a2f10cf5871e15f331baae6 by Thomas Friedrichsmeier.
Committed on 25/11/2015 at 21:22.
Pushed by tfry into branch 'master'.

Small fixes

M  +1    -0    ChangeLog
M  +1    -1    rkward/plugin/rkcomponentproperties.cpp
M  +1    -1    rkward/plugin/rkvarslot.cpp

http://commits.kde.org/rkward/6b88de1bedc5c0556a2f10cf5871e15f331baae6

diff --git a/ChangeLog b/ChangeLog
index a892c1e..625306d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,4 @@
+- Plugins check for correct object type, in more places, but allow to proceed with questionable object selections
 - Fixed: RKWard package repository would be listed twice on fresh installations
 - Switch to bugs.kde.org as primary issue tracker
 - Workspace browser gains functionality to search / filter objects by name
diff --git a/rkward/plugin/rkcomponentproperties.cpp b/rkward/plugin/rkcomponentproperties.cpp
index 00e3f5b..24f3e17 100644
--- a/rkward/plugin/rkcomponentproperties.cpp
+++ b/rkward/plugin/rkcomponentproperties.cpp
@@ -799,7 +799,7 @@ RKComponentPropertyRObjects::RKComponentPropertyRObjects (QObject *parent, bool
 	RK_TRACE (PLUGIN);
 
 // no initial requirements
-	dims = min_length = max_length;
+	dims = min_length = max_length = 0;
 	problems_are_errors = true;
 	setStripDuplicates (true);      // legacy default
 
diff --git a/rkward/plugin/rkvarslot.cpp b/rkward/plugin/rkvarslot.cpp
index 1e9f883..7c0d591 100644
--- a/rkward/plugin/rkvarslot.cpp
+++ b/rkward/plugin/rkvarslot.cpp
@@ -165,7 +165,7 @@ void RKVarSlot::availablePropertyChanged (RKComponentPropertyBase *) {
 			new_item->setText (0, object->getShortName ());
 			QString probs = static_cast<RKComponentPropertyRObjects*> (available)->objectProblems (i);
 			if (!probs.isEmpty ()) {
-				new_item->setToolTip (0, i18n ("<p>Using this object, here may lead to failures or unexpected results, for the following reason(s):</p>") + probs);
+				new_item->setToolTip (0, i18n ("<p>Using this object, here, may lead to failures or unexpected results, for the following reason(s):</p>") + probs);
 				new_item->setIcon (0, KIcon ("task-attention"));
 			}
 		}



More information about the rkward-tracker mailing list