mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-09 15:49:25 +01:00
DolphinQt: fix two -Wshadow-uncaptured-local warnings
This commit is contained in:
parent
0f659508ea
commit
5c46716d28
@ -299,16 +299,14 @@ void GameList::MakeEmptyView()
|
|||||||
size_policy.setRetainSizeWhenHidden(true);
|
size_policy.setRetainSizeWhenHidden(true);
|
||||||
m_empty->setSizePolicy(size_policy);
|
m_empty->setSizePolicy(size_policy);
|
||||||
|
|
||||||
connect(&Settings::Instance(), &Settings::GameListRefreshRequested, this,
|
connect(&Settings::Instance(), &Settings::GameListRefreshRequested, this, [this, refreshing_msg] {
|
||||||
[this, refreshing_msg = refreshing_msg] {
|
m_empty->setText(refreshing_msg);
|
||||||
m_empty->setText(refreshing_msg);
|
m_empty->setEnabled(false);
|
||||||
m_empty->setEnabled(false);
|
});
|
||||||
});
|
connect(&Settings::Instance(), &Settings::GameListRefreshCompleted, this, [this, empty_msg] {
|
||||||
connect(&Settings::Instance(), &Settings::GameListRefreshCompleted, this,
|
m_empty->setText(empty_msg);
|
||||||
[this, empty_msg = empty_msg] {
|
m_empty->setEnabled(true);
|
||||||
m_empty->setText(empty_msg);
|
});
|
||||||
m_empty->setEnabled(true);
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void GameList::resizeEvent(QResizeEvent* event)
|
void GameList::resizeEvent(QResizeEvent* event)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user