add dummy if no window for tab attach is available
BUG: 306451 FIXED-IN: 4.11 REVIEW: 109782
This commit is contained in:
parent
b3adc6254b
commit
2e2e13d89e
1 changed files with 2 additions and 0 deletions
|
@ -552,6 +552,8 @@ void UserActionsMenu::rebuildTabGroupPopup()
|
||||||
continue;
|
continue;
|
||||||
m_addTabsMenu->addAction(shortCaption((*i)->caption()))->setData(QVariant::fromValue(*i));
|
m_addTabsMenu->addAction(shortCaption((*i)->caption()))->setData(QVariant::fromValue(*i));
|
||||||
}
|
}
|
||||||
|
if (m_addTabsMenu->actions().isEmpty())
|
||||||
|
m_addTabsMenu->addAction(i18nc("There's no window available to be attached as tab to this one", "None available"))->setEnabled(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
void UserActionsMenu::initTabbingPopups()
|
void UserActionsMenu::initTabbingPopups()
|
||||||
|
|
Loading…
Reference in a new issue