diff --git a/x64_dbg_gui/Project/Src/Gui/YaraRuleSelectionDialog.cpp b/x64_dbg_gui/Project/Src/Gui/YaraRuleSelectionDialog.cpp index 0d91ec13..a5e80320 100644 --- a/x64_dbg_gui/Project/Src/Gui/YaraRuleSelectionDialog.cpp +++ b/x64_dbg_gui/Project/Src/Gui/YaraRuleSelectionDialog.cpp @@ -55,6 +55,8 @@ void YaraRuleSelectionDialog::on_buttonFile_clicked() void YaraRuleSelectionDialog::on_buttonSelect_clicked() { + if(!ui->listRules->selectedItems().size()) //no selection + return; int selectedIndex = ui->listRules->row(ui->listRules->selectedItems().at(0)); selectedFile = ruleFiles.at(selectedIndex).first; this->accept();