fixed a bug with the paging buttons
This commit is contained in:
parent
bb5d7b8a33
commit
7462b44644
campcaster/src/products/gLiveSupport/src
|
@ -247,6 +247,8 @@ SearchWindow :: constructSearchResultsView(void) throw ()
|
|||
&SearchWindow::onBackwardButtonClicked));
|
||||
forwardButton->signal_clicked().connect(sigc::mem_fun(*this,
|
||||
&SearchWindow::onForwardButtonClicked));
|
||||
|
||||
updatePagingToolbar();
|
||||
}
|
||||
|
||||
|
||||
|
@ -1126,8 +1128,8 @@ SearchWindow :: updatePagingToolbar(void) throw ()
|
|||
std::cerr << e.what() << std::endl;
|
||||
std::exit(1);
|
||||
}
|
||||
backwardButton->set_sensitive(offset == 0);
|
||||
forwardButton->set_sensitive(offset + getSearchResultsSize() >= count);
|
||||
backwardButton->set_sensitive(offset != 0);
|
||||
forwardButton->set_sensitive(offset + getSearchResultsSize() < count);
|
||||
} else {
|
||||
searchResultsCountLabel->set_text("");
|
||||
backwardButton->set_sensitive(false);
|
||||
|
|
Loading…
Reference in New Issue