mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-30 02:12:30 +01:00
fixed crash bug
This commit is contained in:
@@ -154,7 +154,7 @@ WMInsertItemInTabView(WMTabView *tPtr, int index, WMTabViewItem *item)
|
||||
if (index > tPtr->itemCount)
|
||||
index = tPtr->itemCount;
|
||||
|
||||
if (index == 0) {
|
||||
if (index == 0 && tPtr->items[0]) {
|
||||
W_UnmapTabViewItem(tPtr->items[0]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user