[vlc-commits] [Git][videolan/vlc][master] 2 commits: qt/RecentMenu: Fix the 'onRowsRemoved' event
Jean-Baptiste Kempf (@jbk)
gitlab at videolan.org
Fri Aug 26 13:08:08 UTC 2022
Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC
Commits:
9d90e8e9 by Benjamin Arnaud at 2022-08-26T12:57:09+00:00
qt/RecentMenu: Fix the 'onRowsRemoved' event
- - - - -
ee9f5f7b by Benjamin Arnaud at 2022-08-26T12:57:09+00:00
qt/ListMenuHelper: Fix the 'onRowsRemoved' event
- - - - -
1 changed file:
- modules/gui/qt/menus/custom_menus.cpp
Changes:
=====================================
modules/gui/qt/menus/custom_menus.cpp
=====================================
@@ -377,7 +377,7 @@ void ListMenuHelper::onRowsRemoved(const QModelIndex &, int first, int last)
QList<QAction *>::iterator begin = m_actions.begin();
- m_actions.erase(begin + first, begin + last);
+ m_actions.erase(begin + first, begin + last + 1);
emit countChanged(m_actions.count());
}
@@ -479,7 +479,7 @@ void RecentMenu::onRowsRemoved(const QModelIndex&, int first, int last)
QList<QAction *>::iterator begin = m_actions.begin();
- m_actions.erase(begin + first, begin + last);
+ m_actions.erase(begin + first, begin + last + 1);
if (m_actions.isEmpty())
setEnabled(false);
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/67d3c1ea227a95c2b8da75f1533b83e09f3f13d0...ee9f5f7b8d3a632db645c0cc9bfbd0a220885dc1
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/67d3c1ea227a95c2b8da75f1533b83e09f3f13d0...ee9f5f7b8d3a632db645c0cc9bfbd0a220885dc1
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list