diff options
author | Jarek Kobus <[email protected]> | 2025-02-06 13:49:15 +0100 |
---|---|---|
committer | Jarek Kobus <[email protected]> | 2025-02-10 10:21:42 +0000 |
commit | 5b5423b44220b683a6d3743396792961c7429a68 (patch) | |
tree | d3c407640ab082af6f3332ea09cb251564552131 /src/plugins/nim | |
parent | 0c29e5b3aa4d0cd492b07910425868597ce6dbf7 (diff) |
Nim: Restore init() override
The usages if validate() disappeared in the following commits:
ec75575e64cd766c0550fd8d458fa18b92835407
0d185a0ad3f3efc2690356c7567d8351827deb88
Restore a call to validate() from init() reimplementation.
Inline validate() body there.
Change-Id: I5999cc98345cd4d15138eb891c92d9bb9de00027
Reviewed-by: hjk <[email protected]>
Diffstat (limited to 'src/plugins/nim')
-rw-r--r-- | src/plugins/nim/project/nimbletaskstep.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/plugins/nim/project/nimbletaskstep.cpp b/src/plugins/nim/project/nimbletaskstep.cpp index e2a34018f8f..3c6780ee847 100644 --- a/src/plugins/nim/project/nimbletaskstep.cpp +++ b/src/plugins/nim/project/nimbletaskstep.cpp @@ -45,7 +45,7 @@ private: void onDataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight, const QVector<int> &roles); void uncheckedAllDifferentFrom(QStandardItem *item); - bool validate(); + bool init() override; StringAspect m_taskName{this}; StringAspect m_taskArgs{this}; @@ -202,7 +202,7 @@ void NimbleTaskStep::setTaskName(const QString &name) selectTask(name); } -bool NimbleTaskStep::validate() +bool NimbleTaskStep::init() { if (m_taskName().isEmpty()) return true; @@ -217,8 +217,7 @@ bool NimbleTaskStep::validate() emitFaultyConfigurationMessage(); return false; } - - return true; + return AbstractProcessStep::init(); } // Factory |