You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
975 B
20 lines
975 B
--- gnome-commander-1.4.6/src/dialogs/gnome-cmd-search-dialog.cc.debug 2015-05-26 09:59:43.955984728 +0900
|
|
+++ gnome-commander-1.4.6/src/dialogs/gnome-cmd-search-dialog.cc 2015-05-26 10:30:48.683253817 +0900
|
|
@@ -534,8 +534,14 @@
|
|
gtk_dialog_set_response_sensitive (*data->dialog, GnomeCmdSearchDialog::GCMD_RESPONSE_FIND, TRUE);
|
|
gtk_dialog_set_default_response (*data->dialog, GnomeCmdSearchDialog::GCMD_RESPONSE_FIND);
|
|
|
|
- if (matches)
|
|
- gtk_widget_grab_focus (*data->dialog->priv->result_list); // set focus to result list
|
|
+ if (matches) {
|
|
+ GnomeCmdFileList *fl = data->dialog->priv->result_list;
|
|
+ gtk_widget_grab_focus (*fl); // set focus to result list
|
|
+ // select one file, as matches is non-zero, there should be at least one entry
|
|
+ if (!fl->get_focused_file()) {
|
|
+ fl->select_row(0);
|
|
+ }
|
|
+ }
|
|
}
|
|
|
|
return FALSE; // returning FALSE here stops the timeout callbacks
|