mirror of
https://github.com/aseprite/aseprite.git
synced 2025-02-06 12:39:57 +00:00
Fix crash pressing Ctrl+Tab (or Ctrl+Shift+Tab) when there are no tabs
This commit is contained in:
parent
7e65cab22f
commit
81f41e6793
@ -183,6 +183,9 @@ void Tabs::selectTab(TabView* tabView)
|
||||
|
||||
void Tabs::selectNextTab()
|
||||
{
|
||||
if (!m_selected)
|
||||
return;
|
||||
|
||||
TabsListIterator currentTabIt = getTabIteratorByView(m_selected->view);
|
||||
TabsListIterator it = currentTabIt;
|
||||
if (it != m_list.end()) {
|
||||
@ -200,6 +203,9 @@ void Tabs::selectNextTab()
|
||||
|
||||
void Tabs::selectPreviousTab()
|
||||
{
|
||||
if (!m_selected)
|
||||
return;
|
||||
|
||||
TabsListIterator currentTabIt = getTabIteratorByView(m_selected->view);
|
||||
TabsListIterator it = currentTabIt;
|
||||
if (it != m_list.end()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user