Another warning fix

This commit is contained in:
enricoturri1966 2022-01-14 11:03:08 +01:00
parent d7f028a981
commit ece2c34e58

View file

@ -57,7 +57,7 @@ PreferencesDialog::PreferencesDialog(wxWindow* parent) :
void PreferencesDialog::show(const std::string& highlight_opt_key /*= std::string()*/, const std::string& tab_name/*= std::string()*/)
{
int selected_tab = 0;
for ( ; selected_tab < tabs->GetPageCount(); selected_tab++)
for ( ; selected_tab < int(tabs->GetPageCount()); selected_tab++)
if (tabs->GetPageText(selected_tab) == _(tab_name))
break;
if (selected_tab < tabs->GetPageCount())