Skip to content
This repository has been archived by the owner on Dec 5, 2020. It is now read-only.

Commit

Permalink
fixed #72
Browse files Browse the repository at this point in the history
  • Loading branch information
haecker-felix committed Sep 23, 2016
1 parent b548c3b commit cb77d09
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion po/gradio.pot
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-09-23 20:16+0200\n"
"POT-Creation-Date: 2016-09-23 20:22+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
Expand Down
12 changes: 8 additions & 4 deletions src/Widgets/MainWindow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -191,14 +191,18 @@ namespace Gradio{

[GtkCallback]
private void SearchButton_clicked(Gtk.Button button){
discover_box.SearchButton_clicked(SearchEntry.get_text());
DatabaseStack.set_visible_child_name("discover_box");
if(!(SearchEntry.get_text() == "")){
discover_box.SearchButton_clicked(SearchEntry.get_text());
DatabaseStack.set_visible_child_name("discover_box");
}
}

[GtkCallback]
private void SearchEntry_activate(Gtk.Entry entry){
discover_box.SearchButton_clicked(SearchEntry.get_text());
DatabaseStack.set_visible_child_name("discover_box");
if(!(SearchEntry.get_text() == "")){
discover_box.SearchButton_clicked(SearchEntry.get_text());
DatabaseStack.set_visible_child_name("discover_box");
}
}

[GtkCallback]
Expand Down

1 comment on commit cb77d09

@mohamedsakhri
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After this commit if the search text is empty the discover button shows the last search results. I think it should show the home window..

Please sign in to comment.