Commit e9d963b3 authored by Martin Heistermann's avatar Martin Heistermann
Browse files

fix null deref without gui

parent 43d31c53
......@@ -1623,9 +1623,11 @@ void SelectionBasePlugin::updateTabsOrder() {
void SelectionBasePlugin::slotTargetObjectsOnly(bool& _targetsOnly) {
if(OpenFlipper::Options::nogui() || tool_ == 0) _targetsOnly = true;
_targetsOnly = tool_->restrictOnTargets->isChecked();
if(OpenFlipper::Options::nogui() || tool_ == 0) {
_targetsOnly = true;
} else {
_targetsOnly = tool_->restrictOnTargets->isChecked();
}
}
//============================================================================================
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment