void wxbHistoryTextCtrl::OnKeyUp(wxKeyEvent& event) {
if (event.m_keyCode == WXK_UP) {
if (index > 0) {
- if (index == (history.Count()-1)) {
+ if (index == ((int)history.Count()-1)) {
history[index] = GetValue();
}
index--;
}
}
else if (event.m_keyCode == WXK_DOWN) {
- if (index < (history.Count()-1)) {
+ if (index < ((int)history.Count()-1)) {
index++;
SetValue(history[index]);
SetInsertionPointEnd();
wxbDataTokenizer* dt = wxbUtils::WaitForEnd(configPanel->GetRowString("Client") + "\n", true);
if (!tableparser->hasFinished()) {
- for (int i = 0; i < dt->Count(); i++) {
- if ((*dt)[i].Index("No results to list.") == 0) {
+ for (unsigned int i = 0; i < dt->Count(); i++) {
+ if ((*dt)[i].Find("No results to list.") == 0) {
configPanel->AddRowChoice("Before", "No backup found for this client.");
configPanel->SetRowSelection("Before", 0);
configPanel->EnableApply(true); // Enabling the not existing apply button disables the ok button.
delete dt;
return;
}
- else if (((*dt)[i].Index("ERROR") > -1) || ((*dt)[i].Index("Query failed") > -1)) {
+ else if (((*dt)[i].Find("ERROR") > -1) || ((*dt)[i].Find("Query failed") > -1)) {
configPanel->AddRowChoice("Before", "Cannot get previous backups list, see console.");
configPanel->SetRowSelection("Before", 0);
configPanel->EnableApply(true); // Enabling the not existing apply button disables the ok button.