Skip to content

Commit

Permalink
Fix security warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
ashaduri committed May 28, 2024
1 parent ec0445e commit fdcf9f7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/gui/gsc_info_window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2411,6 +2411,7 @@ gboolean GscInfoWindow::test_idle_callback(void* data)
void GscInfoWindow::on_test_execute_button_clicked()
{
auto* test_type_combo = lookup_widget<Gtk::ComboBox*>("test_type_combo");
DBG_ASSERT_RETURN_NONE(test_type_combo);

Gtk::TreeRow row = *(test_type_combo->get_active());
if (!row)
Expand Down Expand Up @@ -2440,9 +2441,7 @@ void GscInfoWindow::on_test_execute_button_clicked()


// Switch GUI to "running test" mode

if (test_type_combo)
test_type_combo->set_sensitive(false);
test_type_combo->set_sensitive(false);

if (auto* test_execute_button = lookup_widget<Gtk::Button*>("test_execute_button"))
test_execute_button->set_sensitive(false);
Expand Down

0 comments on commit fdcf9f7

Please sign in to comment.