last node cannot be deleted

master 0.1
Denes Matetelki 14 years ago
parent b947ebf2ad
commit a3f87785f5

@ -331,6 +331,14 @@ void GraphWidget::keyPressEvent(QKeyEvent *event)
if (m_activeNode) if (m_activeNode)
{ {
if (m_nodeList.size()==1)
{
dynamic_cast<MainWindow *>(m_parent)->getStatusBar()->showMessage(
tr("Last node cannot be deleted."),
5000); // millisec
break;
}
if (m_hintNode==m_activeNode) if (m_hintNode==m_activeNode)
m_hintNode=0; m_hintNode=0;

Loading…
Cancel
Save