Column: Removed ::can_modify, which is moot
This commit is contained in:
@@ -2181,6 +2181,7 @@ void Task::modify (modType type, bool text_required /* = false */)
|
||||
std::string strValue = (std::string) evaluatedValue;
|
||||
if (column->validate (strValue))
|
||||
{
|
||||
/*
|
||||
if (column->can_modify ())
|
||||
{
|
||||
std::string col_value = column->modify (strValue);
|
||||
@@ -2189,9 +2190,12 @@ void Task::modify (modType type, bool text_required /* = false */)
|
||||
}
|
||||
else
|
||||
{
|
||||
*/
|
||||
context.debug (label + name + " <-- '" + strValue + "' <-- '" + value + "'");
|
||||
(*this).set (name, strValue);
|
||||
/*
|
||||
}
|
||||
*/
|
||||
|
||||
++modCount;
|
||||
}
|
||||
|
||||
@@ -265,10 +265,3 @@ bool Column::validate (std::string& input)
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// No L10N.
|
||||
bool Column::can_modify ()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
@@ -63,7 +63,6 @@ public:
|
||||
virtual void renderHeader (std::vector <std::string>&, int, Color&);
|
||||
virtual void render (std::vector <std::string>&, const std::string&, int, Color&) {};
|
||||
virtual void render (std::vector <std::string>&, Task&, int, Color&) {};
|
||||
virtual bool can_modify ();
|
||||
virtual std::string modify (std::string& input) { return input; };
|
||||
|
||||
protected:
|
||||
|
||||
Reference in New Issue
Block a user