mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-05 06:26:49 +00:00
misc: get rid of some compiler warnings
This commit is contained in:
parent
713c1a7a86
commit
0854ed2b51
7 changed files with 21 additions and 19 deletions
|
|
@ -102,9 +102,10 @@ void auto_pause_settings_dialog::SaveEntries(void)
|
|||
|
||||
void auto_pause_settings_dialog::UpdateList(void)
|
||||
{
|
||||
const int entries_size = static_cast<int>(m_entries.size());
|
||||
pauseList->clearContents();
|
||||
pauseList->setRowCount(m_entries.size());
|
||||
for (size_t i = 0; i < m_entries.size(); ++i)
|
||||
pauseList->setRowCount(entries_size);
|
||||
for (int i = 0; i < entries_size; ++i)
|
||||
{
|
||||
QTableWidgetItem* callItem = new QTableWidgetItem;
|
||||
QTableWidgetItem* typeItem = new QTableWidgetItem;
|
||||
|
|
@ -163,7 +164,7 @@ void auto_pause_settings_dialog::ShowContextMenu(const QPoint &pos)
|
|||
connect(add, &QAction::triggered, [=]() {
|
||||
m_entries.emplace_back(0xFFFFFFFF);
|
||||
UpdateList();
|
||||
u32 idx = m_entries.size() - 1;
|
||||
int idx = static_cast<int>(m_entries.size()) - 1;
|
||||
pauseList->selectRow(idx);
|
||||
OnEntryConfig(idx, true);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue