Skip to content

Commit

Permalink
Some minor cleaning up.
Browse files Browse the repository at this point in the history
  • Loading branch information
agarny committed Jul 2, 2017
1 parent 878068a commit b9f9ae1
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions src/plugins/miscellaneous/Core/src/propertyeditorwidget.cpp
Expand Up @@ -1508,19 +1508,10 @@ void PropertyEditorWidget::keyPressEvent(QKeyEvent *pEvent)
|| (pEvent->key() == Qt::Key_Enter))) {
// The user wants to start/stop editing the property

if (mPropertyEditor) {
// We are currently editing a property, so stop editing it

if (mPropertyEditor)
editProperty(0);
} else {
// We are not currently editing a property, so start editing the
// current one
// Note: we could use mProperty, but if it was to be empty then we
// would have to use currentIndex().row(), so we might as well
// use the latter all the time...

else
editProperty(currentProperty());
}

// Accept the event

Expand Down

0 comments on commit b9f9ae1

Please sign in to comment.