]> sigrok.org Git - pulseview.git/commitdiff
DecoderOutputView: Fix updating of the hex view
authorSoeren Apel <redacted>
Sat, 21 Dec 2019 21:45:47 +0000 (22:45 +0100)
committerSoeren Apel <redacted>
Sat, 21 Dec 2019 21:45:47 +0000 (22:45 +0100)
pv/views/decoder_output/view.cpp

index 775f6daf92a8d1ebe9b10f56eed98da1b7a25770..c6d80d16e3dee9aa7feca83b9d63c396b12156a1 100644 (file)
@@ -238,14 +238,14 @@ void View::update_data()
        if (!signal_)
                return;
 
-       if (!binary_data_exists_)
-               return;
-
        const DecodeBinaryClass* bin_class =
                signal_->get_binary_data_class(current_segment_, decoder_, bin_class_id_);
 
        hex_view_->set_data(bin_class);
 
+       if (!binary_data_exists_)
+               return;
+
        if (!save_button_->isEnabled())
                save_button_->setEnabled(true);
 }