mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-07-17 02:52:22 +08:00
修复打开之后不单击树中任何页面就切换到设置时默认页面不能取消选择的bug
This commit is contained in:
parent
2bba8f57ba
commit
2481adf29c
@ -556,6 +556,8 @@ SpkUi::SpkMainWidget::SpkMainWidget(QWidget *parent) : QFrame(parent)
|
||||
|
||||
// Default page selection : homepage
|
||||
HomepageItem->setSelected(true);
|
||||
// Manually "activate" the default page item to make the sidebar tree know about default item
|
||||
emit CategoryWidget->itemPressed(HomepageItem, 0);
|
||||
|
||||
setLayout(HorizontalDivide);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user