Skip to content

Commit 8419099

Browse files
committed
Fix: Actually use parent plugin correctly in scatterplot widget
1 parent 24bf9fd commit 8419099

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/ScatterplotPlugin.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ using namespace mv::util;
4141
ScatterplotPlugin::ScatterplotPlugin(const PluginFactory* factory) :
4242
ViewPlugin(factory),
4343
_dropWidget(nullptr),
44-
_scatterPlotWidget(new ScatterplotWidget()),
44+
_scatterPlotWidget(new ScatterplotWidget(this)),
4545
_numPoints(0),
4646
_settingsAction(this, "Settings"),
4747
_primaryToolbarAction(this, "Primary Toolbar"),

src/ScatterplotWidget.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ bool ScatterplotWidget::event(QEvent* event)
160160
_samplerPixelSelectionTool.setEnabled(false);
161161
}
162162
else if (_parentPlugin) { // reset to UI-setting
163-
_samplerPixelSelectionTool.setEnabled(_parentPlugin->getSamplerAction().isEnabled());
163+
_samplerPixelSelectionTool.setEnabled(_parentPlugin->getSamplerAction().getEnabledAction().isChecked());
164164
}
165165

166166
};

0 commit comments

Comments
 (0)