Skip to content

Commit 038f0fa

Browse files
committed
Revert "add destructor"
This reverts commit 3eb3a44.
1 parent 3eb3a44 commit 038f0fa

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

src/ScalarSourceAction.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,6 @@ ScalarSourceAction::ScalarSourceAction(QObject* parent, const QString& title) :
3131
_offsetAction.setSuffix("px");
3232

3333
const auto scalarSourceChanged = [this]() -> void {
34-
35-
if (_destroyed) return;
36-
3734
const auto sourceIndex = _pickerAction.getCurrentIndex();
3835

3936
_dimensionPickerAction.setEnabled(sourceIndex >= ScalarSourceModel::DefaultRow::DatasetStart);
@@ -64,11 +61,6 @@ ScalarSourceAction::ScalarSourceAction(QObject* parent, const QString& title) :
6461
scalarSourceChanged();
6562
}
6663

67-
ScalarSourceAction::~ScalarSourceAction()
68-
{
69-
_destroyed = true;
70-
}
71-
7264
ScalarSourceModel& ScalarSourceAction::getModel()
7365
{
7466
return _model;

src/ScalarSourceAction.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@ class ScalarSourceAction : public GroupAction
2929
*/
3030
Q_INVOKABLE ScalarSourceAction(QObject* parent, const QString& title);
3131

32-
/** Destructor */
33-
~ScalarSourceAction() override;
34-
3532
/** Get the scalar source model */
3633
ScalarSourceModel& getModel();
3734

@@ -91,7 +88,6 @@ class ScalarSourceAction : public GroupAction
9188
DimensionPickerAction _dimensionPickerAction; /** Dimension picker action */
9289
DecimalAction _offsetAction; /** Scalar source offset action */
9390
DecimalRangeAction _rangeAction; /** Range action */
94-
bool _destroyed = false;
9591

9692
friend class mv::AbstractActionsManager;
9793
};

0 commit comments

Comments
 (0)