Commit 19866fae authored by Pawel Polanski's avatar Pawel Polanski

Null pointer exception when calling context menu on an empty area of Target...

Null pointer exception when calling context menu on an empty area of Target step in new application wizard - fixed

Reviewed-by: Tobias Hunger
parent cad8dcbb
......@@ -516,13 +516,13 @@ void TargetSetupPage::handleDoubleClicks(QTreeWidgetItem *item, int column)
}
}
void TargetSetupPage::contextMenuRequested(const QPoint & position)
void TargetSetupPage::contextMenuRequested(const QPoint &position)
{
m_contextMenu->clear();
QTreeWidgetItem *item = m_ui->versionTree->itemAt(position);
m_contextMenu = new QMenu(this);
if (item->parent()) {
if (item && item->parent()) {
// Qt version item
QAction *onlyThisAction = new QAction(tr("Check only this version"), m_contextMenu);
connect(onlyThisAction, SIGNAL(triggered()), this, SLOT(checkOneTriggered()));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment