Commit ef221302 authored by Jan Möbius's avatar Jan Möbius
Browse files

Merge branch 'fix-null-deref-nogui' into 'master'

fix null deref without gui

See merge request !2
parents 43d31c53 e9d963b3
......@@ -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