Gui: fix regression: show commands of selected category in Toolbar tab

This commit is contained in:
wmayer
2022-11-10 21:09:03 +01:00
committed by wwmayer
parent a95aefdb18
commit 84d0f4fb6f
3 changed files with 14 additions and 2 deletions

View File

@@ -782,6 +782,17 @@ void DlgCustomToolbarsImp::moveDownCustomCommand(const QString& name, const QByt
}
}
void DlgCustomToolbarsImp::showEvent(QShowEvent* event)
{
Q_UNUSED(event);
// If we did this already in the constructor we wouldn't get the vertical scrollbar if needed.
// The problem was noticed with Qt 4.1.4 but may arise with any later version.
if (firstShow) {
ui->categoryBox->activated(ui->categoryBox->currentIndex());
firstShow = false;
}
}
void DlgCustomToolbarsImp::changeEvent(QEvent *e)
{
DlgCustomToolbars::changeEvent(e);