Skip to content

Commit

Permalink
[TD]correct button text
Browse files Browse the repository at this point in the history
  • Loading branch information
WandererFan committed Mar 24, 2020
1 parent afff0df commit 83cb709
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Mod/TechDraw/Gui/TaskLeaderLine.cpp
Expand Up @@ -494,7 +494,6 @@ void TaskLeaderLine::onTrackerClicked(bool b)
if (m_tracker != nullptr) {
m_tracker->terminateDrawing();
}

m_pbTrackerState = TRACKERPICK;
ui->pbTracker->setText(QString::fromUtf8("Pick Points"));
ui->pbCancelEdit->setEnabled(false);
Expand All @@ -503,13 +502,12 @@ void TaskLeaderLine::onTrackerClicked(bool b)
setEditCursor(Qt::ArrowCursor);
return;
} else if ( (m_pbTrackerState == TRACKERSAVE) &&
(!getCreateMode()) ) {
(!getCreateMode()) ) { //edit mode
if (m_qgLine != nullptr) {
m_qgLine->closeEdit();
}

m_pbTrackerState = TRACKERPICK;
ui->pbTracker->setText(QString::fromUtf8("Pick Points"));
ui->pbTracker->setText(QString::fromUtf8("Edit Points"));
ui->pbCancelEdit->setEnabled(false);
enableTaskButtons(true);

Expand Down

0 comments on commit 83cb709

Please sign in to comment.