diff options
Diffstat (limited to 'src/gui/tikzscene.cpp')
-rw-r--r-- | src/gui/tikzscene.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/tikzscene.cpp b/src/gui/tikzscene.cpp index 9422b6b..50ad246 100644 --- a/src/gui/tikzscene.cpp +++ b/src/gui/tikzscene.cpp @@ -548,7 +548,7 @@ void TikzScene::mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event) QString newLabel = QInputDialog::getText(views()[0], tr("Node label"), tr("Label:"), QLineEdit::Normal, ni->node()->label(), &ok); - if (ok && !newLabel.isEmpty()) { + if (ok) { QMap<Node*,QString> oldLabels; oldLabels.insert(ni->node(), ni->node()->label()); ChangeLabelCommand *cmd = new ChangeLabelCommand(this, graph(), oldLabels, newLabel); |