Core: redirect to toolbar creation if user tries to add function when there is nothing in Tree
Signed-off-by: Yash Suthar <yashsuthar983@gmail.com>
This commit is contained in:
committed by
Chris Hennes
parent
0f2bdf280f
commit
b47bb64398
@@ -302,6 +302,9 @@ void DlgCustomToolbars::onMoveActionRightButtonClicked()
|
||||
{
|
||||
QTreeWidgetItem* item = ui->commandTreeWidget->currentItem();
|
||||
if (item) {
|
||||
if (!ui->toolbarTreeWidget->topLevelItemCount()) {
|
||||
onNewButtonClicked();
|
||||
}
|
||||
QTreeWidgetItem* current = ui->toolbarTreeWidget->currentItem();
|
||||
if (!current) {
|
||||
current = ui->toolbarTreeWidget->topLevelItem(0);
|
||||
|
||||
Reference in New Issue
Block a user