Skip to content

Commit

Permalink
Fix build with older compilers
Browse files Browse the repository at this point in the history
  • Loading branch information
kraxarn committed Jan 1, 2024
1 parent 9579a62 commit 0b91848
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/widget/historybutton.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ void HistoryButton::push(const lib::spt::entity &entity, const QString &tooltip,
void HistoryButton::back()
{
const auto &actions = menu()->actions();
for (qsizetype i = 0; i < actions.size() - 1; i++)
for (long long i = 0; i < actions.size() - 1; i++)
{
if (actions.at(i) == current)
{
Expand All @@ -107,7 +107,7 @@ void HistoryButton::back()
void HistoryButton::forward()
{
const auto &actions = menu()->actions();
for (qsizetype i = 0; i < actions.size() - 1; i++)
for (long long i = 0; i < actions.size() - 1; i++)
{
if (actions.at(i + 1) == current)
{
Expand Down

0 comments on commit 0b91848

Please sign in to comment.